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

[16.0][ADD] mrp_workorder_qr_report: In Work Order new report "QR Wor… #469

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
28 changes: 28 additions & 0 deletions mrp_workorder_qr_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

=======================
Mrp Workorder QR report
=======================

* In Work Order new report "QR Work Order".

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

Bugs are tracked on `GitHub Issues
<https://github.com/avanzosc/mrp-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
------------

* Ana Juaristi <[email protected]>
* Alfredo de la Fuente <[email protected]>
Empty file.
15 changes: 15 additions & 0 deletions mrp_workorder_qr_report/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2024 Alfredo de la Fuente - AvanzOSC
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Mrp Workorder QR Report",
"version": "16.0.1.0.0",
"author": "Avanzosc",
"website": "https://github.com/avanzosc/mrp-addons",
"category": "Manufacturing/Manufacturing",
"license": "AGPL-3",
"depends": ["mrp"],
"data": [
"report/mrp_workorder_report.xml",
],
"installable": True,
}
46 changes: 46 additions & 0 deletions mrp_workorder_qr_report/i18n/ca_ES.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_workorder_qr_report
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-12 09:58+0000\n"
"PO-Revision-Date: 2024-11-12 09:58+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: mrp_workorder_qr_report
#: model:ir.actions.report,print_report_name:mrp_workorder_qr_report.action_report_workorder_qr
msgid "'Work Order - %s' % object.name"
msgstr ""

#. module: mrp_workorder_qr_report
#: model_terms:ir.ui.view,arch_db:mrp_workorder_qr_report.report_mrp_workorder_qr
msgid "<strong>Finished Product:</strong><br/>"
msgstr ""

#. module: mrp_workorder_qr_report
#: model_terms:ir.ui.view,arch_db:mrp_workorder_qr_report.report_mrp_workorder_qr
msgid "<strong>Manufacturing Order:</strong><br/>"
msgstr ""

#. module: mrp_workorder_qr_report
#: model_terms:ir.ui.view,arch_db:mrp_workorder_qr_report.report_mrp_workorder_qr
msgid "<strong>Quantity to Produce:</strong><br/>"
msgstr ""

#. module: mrp_workorder_qr_report
#: model_terms:ir.ui.view,arch_db:mrp_workorder_qr_report.report_mrp_workorder_qr
msgid "<strong>Responsible:</strong><br/>"
msgstr ""

#. module: mrp_workorder_qr_report
#: model:ir.actions.report,name:mrp_workorder_qr_report.action_report_workorder_qr
msgid "QR Work Order"
msgstr ""
46 changes: 46 additions & 0 deletions mrp_workorder_qr_report/i18n/en_GB.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_workorder_qr_report
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-12 09:58+0000\n"
"PO-Revision-Date: 2024-11-12 09:58+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: mrp_workorder_qr_report
#: model:ir.actions.report,print_report_name:mrp_workorder_qr_report.action_report_workorder_qr
msgid "'Work Order - %s' % object.name"
msgstr ""

#. module: mrp_workorder_qr_report
#: model_terms:ir.ui.view,arch_db:mrp_workorder_qr_report.report_mrp_workorder_qr
msgid "<strong>Finished Product:</strong><br/>"
msgstr ""

#. module: mrp_workorder_qr_report
#: model_terms:ir.ui.view,arch_db:mrp_workorder_qr_report.report_mrp_workorder_qr
msgid "<strong>Manufacturing Order:</strong><br/>"
msgstr ""

#. module: mrp_workorder_qr_report
#: model_terms:ir.ui.view,arch_db:mrp_workorder_qr_report.report_mrp_workorder_qr
msgid "<strong>Quantity to Produce:</strong><br/>"
msgstr ""

#. module: mrp_workorder_qr_report
#: model_terms:ir.ui.view,arch_db:mrp_workorder_qr_report.report_mrp_workorder_qr
msgid "<strong>Responsible:</strong><br/>"
msgstr ""

#. module: mrp_workorder_qr_report
#: model:ir.actions.report,name:mrp_workorder_qr_report.action_report_workorder_qr
msgid "QR Work Order"
msgstr ""
46 changes: 46 additions & 0 deletions mrp_workorder_qr_report/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_workorder_qr_report
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-12 09:59+0000\n"
"PO-Revision-Date: 2024-11-12 09:59+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: mrp_workorder_qr_report
#: model:ir.actions.report,print_report_name:mrp_workorder_qr_report.action_report_workorder_qr
msgid "'Work Order - %s' % object.name"
msgstr "'Orden de trabajo - %s' % object.name"

#. module: mrp_workorder_qr_report
#: model_terms:ir.ui.view,arch_db:mrp_workorder_qr_report.report_mrp_workorder_qr
msgid "<strong>Finished Product:</strong><br/>"
msgstr "<strong>Producto terminado:</strong><br/>"

#. module: mrp_workorder_qr_report
#: model_terms:ir.ui.view,arch_db:mrp_workorder_qr_report.report_mrp_workorder_qr
msgid "<strong>Manufacturing Order:</strong><br/>"
msgstr "<strong>Orden de fabricación:</strong><br/>"

#. module: mrp_workorder_qr_report
#: model_terms:ir.ui.view,arch_db:mrp_workorder_qr_report.report_mrp_workorder_qr
msgid "<strong>Quantity to Produce:</strong><br/>"
msgstr "<strong>Cantidad a producir:</strong><br/>"

#. module: mrp_workorder_qr_report
#: model_terms:ir.ui.view,arch_db:mrp_workorder_qr_report.report_mrp_workorder_qr
msgid "<strong>Responsible:</strong><br/>"
msgstr "<strong>Responsable:</strong><br/>"

#. module: mrp_workorder_qr_report
#: model:ir.actions.report,name:mrp_workorder_qr_report.action_report_workorder_qr
msgid "QR Work Order"
msgstr "QR Orden de trabajo"
46 changes: 46 additions & 0 deletions mrp_workorder_qr_report/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_workorder_qr_report
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-12 09:58+0000\n"
"PO-Revision-Date: 2024-11-12 09:58+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: mrp_workorder_qr_report
#: model:ir.actions.report,print_report_name:mrp_workorder_qr_report.action_report_workorder_qr
msgid "'Work Order - %s' % object.name"
msgstr ""

#. module: mrp_workorder_qr_report
#: model_terms:ir.ui.view,arch_db:mrp_workorder_qr_report.report_mrp_workorder_qr
msgid "<strong>Finished Product:</strong><br/>"
msgstr ""

#. module: mrp_workorder_qr_report
#: model_terms:ir.ui.view,arch_db:mrp_workorder_qr_report.report_mrp_workorder_qr
msgid "<strong>Manufacturing Order:</strong><br/>"
msgstr ""

#. module: mrp_workorder_qr_report
#: model_terms:ir.ui.view,arch_db:mrp_workorder_qr_report.report_mrp_workorder_qr
msgid "<strong>Quantity to Produce:</strong><br/>"
msgstr ""

#. module: mrp_workorder_qr_report
#: model_terms:ir.ui.view,arch_db:mrp_workorder_qr_report.report_mrp_workorder_qr
msgid "<strong>Responsible:</strong><br/>"
msgstr ""

#. module: mrp_workorder_qr_report
#: model:ir.actions.report,name:mrp_workorder_qr_report.action_report_workorder_qr
msgid "QR Work Order"
msgstr ""
46 changes: 46 additions & 0 deletions mrp_workorder_qr_report/i18n/mrp_workorder_qr_report.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_workorder_qr_report
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-12 09:58+0000\n"
"PO-Revision-Date: 2024-11-12 09:58+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: mrp_workorder_qr_report
#: model:ir.actions.report,print_report_name:mrp_workorder_qr_report.action_report_workorder_qr
msgid "'Work Order - %s' % object.name"
msgstr ""

#. module: mrp_workorder_qr_report
#: model_terms:ir.ui.view,arch_db:mrp_workorder_qr_report.report_mrp_workorder_qr
msgid "<strong>Finished Product:</strong><br/>"
msgstr ""

#. module: mrp_workorder_qr_report
#: model_terms:ir.ui.view,arch_db:mrp_workorder_qr_report.report_mrp_workorder_qr
msgid "<strong>Manufacturing Order:</strong><br/>"
msgstr ""

#. module: mrp_workorder_qr_report
#: model_terms:ir.ui.view,arch_db:mrp_workorder_qr_report.report_mrp_workorder_qr
msgid "<strong>Quantity to Produce:</strong><br/>"
msgstr ""

#. module: mrp_workorder_qr_report
#: model_terms:ir.ui.view,arch_db:mrp_workorder_qr_report.report_mrp_workorder_qr
msgid "<strong>Responsible:</strong><br/>"
msgstr ""

#. module: mrp_workorder_qr_report
#: model:ir.actions.report,name:mrp_workorder_qr_report.action_report_workorder_qr
msgid "QR Work Order"
msgstr ""
72 changes: 72 additions & 0 deletions mrp_workorder_qr_report/report/mrp_workorder_report.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template id="report_mrp_workorder_qr">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="web.internal_layout">
<div class="page">
<div class="oe_structure" />
<div class="row">
<div class="col-7">
<h2><span t-field="o.name" /></h2>
</div>
<div class="col-5">
<img
t-att-src="'/report/barcode/?barcode_type=%s&amp;value=%s&amp;width=%s&amp;height=%s'%('QR', o.name, 115, 115)"
/>
</div>
</div>
<br />
<div class="row mt32 mb32">
<div class="col-3">
<strong>Responsible:</strong><br />
<span t-field="o.production_id.user_id" />
</div>
<div class="col-3">
<strong>Manufacturing Order:</strong><br />
<span t-field="o.production_id.name" />
</div>
</div>
<br />
<div class="row mt32 mb32">
<div class="col-3">
<strong>Finished Product:</strong><br />
<span t-field="o.product_id" />
</div>
<div class="col-3">
<strong>Quantity to Produce:</strong><br />
<span t-field="o.qty_production" />
<span
t-field="o.product_uom_id.name"
groups="uom.group_uom"
/>
</div>
</div>
<br />
<t
t-call="mrp.report_mrp_production_components"
t-if="o.move_raw_ids"
/>
<div class="oe_structure" />
</div>
</t>
</t>
</t>
</template>

<record id="action_report_workorder_qr" model="ir.actions.report">
<field name="name">QR Work Order</field>
<field name="model">mrp.workorder</field>
<field name="report_type">qweb-pdf</field>
<field
name="report_name"
>mrp_workorder_qr_report.report_mrp_workorder_qr</field>
<field
name="report_file"
>mrp_workorder_qr_report.report_mrp_workorder_qr</field>
<field name="print_report_name">'Work Order - %s' % object.name</field>
<field name="binding_model_id" ref="mrp.model_mrp_workorder" />
<field name="binding_type">report</field>
<field name="multi">True</field>
</record>
</odoo>
6 changes: 6 additions & 0 deletions setup/mrp_workorder_qr_report/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