-
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.
[14.0][ADD] repair_order_report_ext: In repair order new report "Quot…
…ation / Order Without Amounts".
- Loading branch information
1 parent
7721118
commit 37922e7
Showing
9 changed files
with
194 additions
and
0 deletions.
There are no files selected for viewing
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,27 @@ | ||
.. 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 report ext | ||
======================= | ||
|
||
* In repair order new report "Quotation / Order Without Amounts". | ||
|
||
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. | ||
|
||
Credits | ||
======= | ||
|
||
Contributors | ||
------------ | ||
* Alfredo de la Fuente <[email protected]> | ||
* Ana Juaristi <[email protected]> | ||
|
||
Do not contact contributors directly about support or help with technical issues. |
Empty file.
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,17 @@ | ||
# Copyright 2024 Alfredo de la Fuente - AvanzOSC | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
{ | ||
"name": "Repair Order Report Ext", | ||
"version": "14.0.1.0.0", | ||
"category": "Inventory/Inventory", | ||
"license": "AGPL-3", | ||
"author": "AvanzOSC", | ||
"website": "https://github.com/avanzosc/mrp-repair-addons", | ||
"depends": [ | ||
"repair", | ||
], | ||
"data": [ | ||
"report/repair_report.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,29 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * repair_order_report_ext | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 14.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-11-26 07:04+0000\n" | ||
"PO-Revision-Date: 2024-11-26 07:04+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_report_ext | ||
#: model:ir.actions.report,print_report_name:repair_order_report_ext.action_report_repair_order_without | ||
msgid "" | ||
"(\n" | ||
" object.state == 'draft' and 'Repair Quotation - %s without amounts' % (object.name) or\n" | ||
" 'Repair Order - %s without amounts' % (object.name))" | ||
msgstr "" | ||
|
||
#. module: repair_order_report_ext | ||
#: model:ir.actions.report,name:repair_order_report_ext.action_report_repair_order_without | ||
msgid "Quotation / Order Without Amounts" | ||
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,32 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * repair_order_report_ext | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 14.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-11-26 07:05+0000\n" | ||
"PO-Revision-Date: 2024-11-26 07:05+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_report_ext | ||
#: model:ir.actions.report,print_report_name:repair_order_report_ext.action_report_repair_order_without | ||
msgid "" | ||
"(\n" | ||
" object.state == 'draft' and 'Repair Quotation - %s without amounts' % (object.name) or\n" | ||
" 'Repair Order - %s without amounts' % (object.name))" | ||
msgstr "" | ||
"(\n" | ||
" object.state == 'draft' and 'Presupuesto de Reparación - %s sin importes' % (object.name) or\n" | ||
" 'Orden de reparación - %s sin importes' % (object.name))" | ||
|
||
#. module: repair_order_report_ext | ||
#: model:ir.actions.report,name:repair_order_report_ext.action_report_repair_order_without | ||
msgid "Quotation / Order Without Amounts" | ||
msgstr "Presupuesto / Pedido Sin Importes" |
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,29 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * repair_order_report_ext | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 14.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-11-26 07:04+0000\n" | ||
"PO-Revision-Date: 2024-11-26 07:04+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_report_ext | ||
#: model:ir.actions.report,print_report_name:repair_order_report_ext.action_report_repair_order_without | ||
msgid "" | ||
"(\n" | ||
" object.state == 'draft' and 'Repair Quotation - %s without amounts' % (object.name) or\n" | ||
" 'Repair Order - %s without amounts' % (object.name))" | ||
msgstr "" | ||
|
||
#. module: repair_order_report_ext | ||
#: model:ir.actions.report,name:repair_order_report_ext.action_report_repair_order_without | ||
msgid "Quotation / Order Without Amounts" | ||
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,53 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<template id="report_repairorder" inherit_id="repair.report_repairorder"> | ||
<t t-if="o.invoice_method != 'none'" position="attributes"> | ||
<attribute | ||
name="t-if" | ||
>o.invoice_method != 'none' and with_amounts == True</attribute> | ||
</t> | ||
<t t-if="(line.repair_id.invoice_method != 'none')" position="attributes"> | ||
<attribute | ||
name="t-if" | ||
>(line.repair_id.invoice_method != 'none' and with_amounts == True)</attribute> | ||
</t> | ||
<t t-if="(fees.repair_id.invoice_method != 'none')" position="attributes"> | ||
<attribute | ||
name="t-if" | ||
>(fees.repair_id.invoice_method != 'none' and with_amounts == True)</attribute> | ||
</t> | ||
<div id="total" position="attributes"> | ||
<attribute name="t-if">with_amounts == True</attribute> | ||
</div> | ||
</template> | ||
|
||
<template id="report_repairorder2" inherit_id="repair.report_repairorder2"> | ||
<t t-call="repair.report_repairorder" position="before"> | ||
<t t-set="with_amounts" t-value="True" /> | ||
</t> | ||
</template> | ||
|
||
<template id="report_repairorder_without_amounts"> | ||
<t t-call="web.html_container"> | ||
<t t-foreach="docs" t-as="doc"> | ||
<t t-set="with_amounts" t-value="False" /> | ||
<t t-call="repair.report_repairorder" t-lang="doc.partner_id.lang" /> | ||
</t> | ||
</t> | ||
</template> | ||
|
||
<record id="action_report_repair_order_without" model="ir.actions.report"> | ||
<field name="name">Quotation / Order Without Amounts</field> | ||
<field name="model">repair.order</field> | ||
<field name="report_type">qweb-pdf</field> | ||
<field | ||
name="report_name" | ||
>repair_order_report_ext.report_repairorder_without_amounts</field> | ||
<field name="report_file">repair.report_repairorder</field> | ||
<field name="print_report_name">( | ||
object.state == 'draft' and 'Repair Quotation - %s without amounts' % (object.name) or | ||
'Repair Order - %s without amounts' % (object.name))</field> | ||
<field name="binding_model_id" ref="repair.model_repair_order" /> | ||
<field name="binding_type">report</field> | ||
</record> | ||
</odoo> |
1 change: 1 addition & 0 deletions
1
setup/repair_order_report_ext/odoo/addons/repair_order_report_ext
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 @@ | ||
../../../../repair_order_report_ext |
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,6 @@ | ||
import setuptools | ||
|
||
setuptools.setup( | ||
setup_requires=['setuptools-odoo'], | ||
odoo_addon=True, | ||
) |