Skip to content

Commit

Permalink
[IMP] mrp_repair_proforma_report: black, isort, prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredoavanzosc authored and anajuaristi committed Oct 3, 2024
1 parent 7962ff3 commit 1b1512c
Show file tree
Hide file tree
Showing 20 changed files with 351 additions and 93 deletions.
18 changes: 0 additions & 18 deletions mrp_repair_proforma_report/README.rst

This file was deleted.

5 changes: 0 additions & 5 deletions mrp_repair_proforma_report/__init__.py

This file was deleted.

23 changes: 0 additions & 23 deletions mrp_repair_proforma_report/__openerp__.py

This file was deleted.

5 changes: 0 additions & 5 deletions mrp_repair_proforma_report/models/__init__.py

This file was deleted.

11 changes: 0 additions & 11 deletions mrp_repair_proforma_report/models/mrp_repair.py

This file was deleted.

15 changes: 0 additions & 15 deletions mrp_repair_proforma_report/views/mrp_repair_report.xml

This file was deleted.

16 changes: 0 additions & 16 deletions mrp_repair_proforma_report/views/mrp_repair_view.xml

This file was deleted.

28 changes: 28 additions & 0 deletions repair_order_proforma_report/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

============================
Repair order proforma report
============================

* This module add the 'proforma' checkbox to repair orders. If this check is
checked, the repair report header changes to 'Proforma'.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/avanzosc/mrp-repair-addons/issues>`_. In case of trouble,
please check there if your issue has already been reported. If you spotted
it first, help us smash it by providing detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Contributors
------------
* Esther Martín <[email protected]>
* Ana Juaristi <[email protected]>
1 change: 1 addition & 0 deletions repair_order_proforma_report/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
22 changes: 22 additions & 0 deletions repair_order_proforma_report/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2015 Esther Martín - AvanzOSC
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Repair Order Proforma Report",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"depends": [
"repair",
],
"author": "AvanzOSC",
"contributors": [
"Esther Martín <[email protected]>",
"Ana Juaristi <[email protected]>",
],
"category": "Inventory/Inventory",
"website": "https://github.com/avanzosc/mrp-repair-addons",
"data": [
"views/repair_order_report.xml",
"views/repair_order_views.xml",
],
"installable": True,
}
52 changes: 52 additions & 0 deletions repair_order_proforma_report/i18n/ca_ES.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * repair_order_proforma_report
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-03 06:46+0000\n"
"PO-Revision-Date: 2024-10-03 06:46+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: repair_order_proforma_report
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.view_repair_order_form_filter
msgid "Is Not Proforma"
msgstr ""

#. module: repair_order_proforma_report
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.view_repair_order_form_filter
msgid "Is Proforma"
msgstr ""

#. module: repair_order_proforma_report
#: model:ir.model.fields,field_description:repair_order_proforma_report.field_repair_order__proforma
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.view_repair_order_form_filter
msgid "Proforma"
msgstr ""

#. module: repair_order_proforma_report
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.report_repairorder
msgid "Proforma Nº:"
msgstr ""

#. module: repair_order_proforma_report
#: model:ir.model,name:repair_order_proforma_report.model_repair_order
msgid "Repair Order"
msgstr "Ordre de reparació"

#. module: repair_order_proforma_report
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.report_repairorder
msgid "Repair Order N°:"
msgstr ""

#. module: repair_order_proforma_report
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.report_repairorder
msgid "Repair Quotation N°:"
msgstr ""
52 changes: 52 additions & 0 deletions repair_order_proforma_report/i18n/en_GB.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * repair_order_proforma_report
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-03 06:46+0000\n"
"PO-Revision-Date: 2024-10-03 06:46+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: repair_order_proforma_report
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.view_repair_order_form_filter
msgid "Is Not Proforma"
msgstr ""

#. module: repair_order_proforma_report
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.view_repair_order_form_filter
msgid "Is Proforma"
msgstr ""

#. module: repair_order_proforma_report
#: model:ir.model.fields,field_description:repair_order_proforma_report.field_repair_order__proforma
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.view_repair_order_form_filter
msgid "Proforma"
msgstr ""

#. module: repair_order_proforma_report
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.report_repairorder
msgid "Proforma Nº:"
msgstr ""

#. module: repair_order_proforma_report
#: model:ir.model,name:repair_order_proforma_report.model_repair_order
msgid "Repair Order"
msgstr ""

#. module: repair_order_proforma_report
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.report_repairorder
msgid "Repair Order N°:"
msgstr ""

#. module: repair_order_proforma_report
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.report_repairorder
msgid "Repair Quotation N°:"
msgstr ""
52 changes: 52 additions & 0 deletions repair_order_proforma_report/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * repair_order_proforma_report
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-03 06:47+0000\n"
"PO-Revision-Date: 2024-10-03 06:47+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: repair_order_proforma_report
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.view_repair_order_form_filter
msgid "Is Not Proforma"
msgstr "No es proforma"

#. module: repair_order_proforma_report
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.view_repair_order_form_filter
msgid "Is Proforma"
msgstr "Es proforma"

#. module: repair_order_proforma_report
#: model:ir.model.fields,field_description:repair_order_proforma_report.field_repair_order__proforma
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.view_repair_order_form_filter
msgid "Proforma"
msgstr "Proforma"

#. module: repair_order_proforma_report
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.report_repairorder
msgid "Proforma Nº:"
msgstr "Proforma Nº:"

#. module: repair_order_proforma_report
#: model:ir.model,name:repair_order_proforma_report.model_repair_order
msgid "Repair Order"
msgstr "Orden de reparación"

#. module: repair_order_proforma_report
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.report_repairorder
msgid "Repair Order N°:"
msgstr "Orden de reparación nº:"

#. module: repair_order_proforma_report
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.report_repairorder
msgid "Repair Quotation N°:"
msgstr "Presupuesto de reparación nº:"
52 changes: 52 additions & 0 deletions repair_order_proforma_report/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * repair_order_proforma_report
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-03 06:46+0000\n"
"PO-Revision-Date: 2024-10-03 06:46+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: repair_order_proforma_report
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.view_repair_order_form_filter
msgid "Is Not Proforma"
msgstr ""

#. module: repair_order_proforma_report
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.view_repair_order_form_filter
msgid "Is Proforma"
msgstr ""

#. module: repair_order_proforma_report
#: model:ir.model.fields,field_description:repair_order_proforma_report.field_repair_order__proforma
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.view_repair_order_form_filter
msgid "Proforma"
msgstr ""

#. module: repair_order_proforma_report
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.report_repairorder
msgid "Proforma Nº:"
msgstr ""

#. module: repair_order_proforma_report
#: model:ir.model,name:repair_order_proforma_report.model_repair_order
msgid "Repair Order"
msgstr "Ordre de réparation"

#. module: repair_order_proforma_report
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.report_repairorder
msgid "Repair Order N°:"
msgstr ""

#. module: repair_order_proforma_report
#: model_terms:ir.ui.view,arch_db:repair_order_proforma_report.report_repairorder
msgid "Repair Quotation N°:"
msgstr ""
1 change: 1 addition & 0 deletions repair_order_proforma_report/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import repair_order
9 changes: 9 additions & 0 deletions repair_order_proforma_report/models/repair_order.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright 2015 Esther Martín - AvanzOSC
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models


class RepairOrder(models.Model):
_inherit = "repair.order"

proforma = fields.Boolean(copy=False)
21 changes: 21 additions & 0 deletions repair_order_proforma_report/views/repair_order_report.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template
id="report_repairorder"
inherit_id="repair.report_repairorder"
priority="100"
>
<xpath expr="//div[@class='page']/h2" position="replace">
<h2>
<span
t-if="o.state != 'draft' and not o.proforma"
>Repair Order N°:</span>
<span
t-if="o.state == 'draft' and not o.proforma"
>Repair Quotation N°:</span>
<span t-if="o.proforma">Proforma Nº:</span>
<span t-field="o.name" />
</h2>
</xpath>
</template>
</odoo>
Loading

0 comments on commit 1b1512c

Please sign in to comment.