Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][ADD] repair_order_report_ext: In repair order new report "Quot… #110

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions repair_order_report_ext/README.rst
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.
17 changes: 17 additions & 0 deletions repair_order_report_ext/__manifest__.py
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,
}
29 changes: 29 additions & 0 deletions repair_order_report_ext/i18n/en_GB.po
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 ""
32 changes: 32 additions & 0 deletions repair_order_report_ext/i18n/es.po
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"
29 changes: 29 additions & 0 deletions repair_order_report_ext/i18n/repair_order_report_ext.pot
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 ""
53 changes: 53 additions & 0 deletions repair_order_report_ext/report/repair_report.xml
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>
6 changes: 6 additions & 0 deletions setup/repair_order_report_ext/setup.py
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,
)
Loading