-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] mrp_repair_proforma_report: black, isort, prettier
- Loading branch information
1 parent
7962ff3
commit 1b1512c
Showing
20 changed files
with
351 additions
and
93 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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º:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import repair_order |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
21
repair_order_proforma_report/views/repair_order_report.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.