Skip to content

Commit 7a773e1

Browse files
[16.0][IMP] mrp_production_stencil_product: Print stencil products in manufacturing order report. (#390)
1 parent 387d4a9 commit 7a773e1

File tree

4 files changed

+74
-0
lines changed

4 files changed

+74
-0
lines changed

mrp_production_stencil_product/__manifest__.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
],
1616
"data": [
1717
"security/ir.model.access.csv",
18+
"report/mrp_production_report.xml",
1819
"views/mrp_bom_views.xml",
1920
"views/mrp_production_views.xml",
2021
"views/mrp_workorder_views.xml",

mrp_production_stencil_product/i18n/es.po

+21
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,24 @@ msgstr "Unidad de medida"
145145
#: model:ir.model,name:mrp_production_stencil_product.model_mrp_workorder
146146
msgid "Work Order"
147147
msgstr "Orden de trabajo"
148+
149+
#. module: mrp_production_stencil_product
150+
#: model_terms:ir.ui.view,arch_db:mrp_production_stencil_product.report_mrporder
151+
msgid "<span>Stencil Products</span>"
152+
msgstr "<span>Utillaje</span>"
153+
154+
#. module: mrp_production_stencil_product
155+
#: model_terms:ir.ui.view,arch_db:mrp_production_stencil_product.report_mrporder
156+
msgid "<strong>Location</strong>"
157+
msgstr "<strong>Ubicación</strong>"
158+
159+
#. module: mrp_production_stencil_product
160+
#: model_terms:ir.ui.view,arch_db:mrp_production_stencil_product.report_mrporder
161+
msgid "<strong>Product</strong>"
162+
msgstr "<strong>Producto</strong>"
163+
164+
#. module: mrp_production_stencil_product
165+
#: model_terms:ir.ui.view,arch_db:mrp_production_stencil_product.report_mrporder
166+
msgid "<strong>Quantity</strong>"
167+
msgstr "<strong>Cantidad</strong>"
168+

mrp_production_stencil_product/i18n/mrp_production_stencil_product.pot

+21
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,24 @@ msgstr ""
145145
#: model:ir.model,name:mrp_production_stencil_product.model_mrp_workorder
146146
msgid "Work Order"
147147
msgstr ""
148+
149+
#. module: mrp_production_stencil_product
150+
#: model_terms:ir.ui.view,arch_db:mrp_production_stencil_product.report_mrporder
151+
msgid "<span>Stencil Products</span>"
152+
msgstr ""
153+
154+
#. module: mrp_production_stencil_product
155+
#: model_terms:ir.ui.view,arch_db:mrp_production_stencil_product.report_mrporder
156+
msgid "<strong>Location</strong>"
157+
msgstr ""
158+
159+
#. module: mrp_production_stencil_product
160+
#: model_terms:ir.ui.view,arch_db:mrp_production_stencil_product.report_mrporder
161+
msgid "<strong>Product</strong>"
162+
msgstr ""
163+
164+
#. module: mrp_production_stencil_product
165+
#: model_terms:ir.ui.view,arch_db:mrp_production_stencil_product.report_mrporder
166+
msgid "<strong>Quantity</strong>"
167+
msgstr ""
168+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<odoo>
3+
<template id="report_mrporder" inherit_id="mrp.report_mrporder">
4+
<t t-if="o.move_raw_ids" position="after">
5+
<div t-if="o.stencil_product_ids">
6+
<h3>
7+
<span>Stencil Products</span>
8+
</h3>
9+
<table class="table table-sm">
10+
<tr>
11+
<th class="text-start"><strong>Product</strong></th>
12+
<th class="text-start"><strong>Location</strong></th>
13+
<th class="text-end"><strong>Quantity</strong></th>
14+
</tr>
15+
<tr t-foreach="o.stencil_product_ids" t-as="line">
16+
<td class="text-start"><span
17+
t-field="line.product_id.name"
18+
/></td>
19+
<td class="text-start"><span
20+
t-field="line.location_id.name"
21+
/></td>
22+
<td class="text-end">
23+
<span t-field="line.product_uom_qty" />
24+
<span t-field="line.product_uom_id" />
25+
</td>
26+
</tr>
27+
</table>
28+
</div>
29+
</t>
30+
</template>
31+
</odoo>

0 commit comments

Comments
 (0)