19 changed files with 259 additions and 226 deletions
@ -1,44 +0,0 @@ |
|||
<?xml version="1.0"?> |
|||
<odoo> |
|||
|
|||
<template id="report_mrp_order"> |
|||
<t t-call="web.html_container"> |
|||
<t t-call="web.external_layout"> |
|||
<div class="page"> |
|||
<h1><strong>MRP Order Report</strong></h1> |
|||
<t t-if="date_from"><p><strong>Date From : </strong> |
|||
<t t-esc="date_from"/></p></t> |
|||
<t t-if="stage"><p><strong>State : </strong> |
|||
<t t-esc="stage"/></p></t> |
|||
<table class="table table-sm table-striped mt-4"> |
|||
<thead> |
|||
<tr> |
|||
<th>Reference</th> |
|||
<th>Image</th> |
|||
<th>Product</th> |
|||
<th>Quantity</th> |
|||
<th>Unit</th> |
|||
<th>Responsible</th> |
|||
<th>Start Date</th> |
|||
<th>State</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<tr t-foreach="mrp" t-as="rec"> |
|||
<td><t t-esc="rec['name']"/></td> |
|||
<td> <img t-attf-src="data:image/png;base64,{{rec['image']}}" style="width:70%;" margin="right"/></td> |
|||
<td><t t-esc="rec['product']"/></td> |
|||
<td><t t-esc="rec['quantity']"/></td> |
|||
<td><t t-esc="rec['unit']"/></td> |
|||
<td><t t-esc="rec['responsible']"/></td> |
|||
<td><t t-esc="rec['start_date']"/></td> |
|||
<td><t t-esc="rec['state']"/></td> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
</t> |
|||
</t> |
|||
</template> |
|||
|
|||
</odoo> |
@ -0,0 +1,70 @@ |
|||
<?xml version="1.0"?> |
|||
<odoo> |
|||
<!-- Template for the manufacturing report.--> |
|||
<template id="report_mrp_order"> |
|||
<t t-call="web.html_container"> |
|||
<t t-call="web.external_layout"> |
|||
<div class="page"> |
|||
<h1> |
|||
<strong>MRP Order Report</strong> |
|||
</h1> |
|||
<t t-if="date_from"> |
|||
<p> |
|||
<strong>Date From :</strong> |
|||
<t t-esc="date_from"/> |
|||
</p> |
|||
</t> |
|||
<t t-if="stage"> |
|||
<p> |
|||
<strong>State :</strong> |
|||
<t t-esc="stage"/> |
|||
</p> |
|||
</t> |
|||
<table class="table table-sm table-striped mt-4"> |
|||
<thead> |
|||
<tr> |
|||
<th>Reference</th> |
|||
<th>Image</th> |
|||
<th>Product</th> |
|||
<th>Quantity</th> |
|||
<th>Unit</th> |
|||
<th>Responsible</th> |
|||
<th>Start Date</th> |
|||
<th>State</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<tr t-foreach="mrp" t-as="rec"> |
|||
<td> |
|||
<t t-esc="rec['name']"/> |
|||
</td> |
|||
<td> |
|||
<img t-attf-src="data:image/png;base64,{{rec['image']}}" |
|||
style="width:70%;" margin="right"/> |
|||
</td> |
|||
<td> |
|||
<t t-esc="rec['product']"/> |
|||
</td> |
|||
<td> |
|||
<t t-esc="rec['quantity']"/> |
|||
</td> |
|||
<td> |
|||
<t t-esc="rec['unit']"/> |
|||
</td> |
|||
<td> |
|||
<t t-esc="rec['responsible']"/> |
|||
</td> |
|||
<td> |
|||
<t t-esc="rec['start_date']"/> |
|||
</td> |
|||
<td> |
|||
<t t-esc="rec['state']"/> |
|||
</td> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
</t> |
|||
</t> |
|||
</template> |
|||
</odoo> |
|
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 78 KiB |
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 65 KiB |
@ -0,0 +1,10 @@ |
|||
<?xml version="1.0" encoding="utf-8" ?> |
|||
<odoo> |
|||
<!-- Menu for manufacturing report--> |
|||
<menuitem id="menu_mrp_reports" |
|||
parent="mrp.menu_mrp_reporting" |
|||
name="Manufacturing Reports" |
|||
action="manufacturing_reports.mrp_report_action" |
|||
sequence="5"/> |
|||
|
|||
</odoo> |
@ -1,9 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8" ?> |
|||
<odoo> |
|||
<data> |
|||
|
|||
<menuitem id="menu_mrp_reports" parent="mrp.menu_mrp_reporting" name="Manufacturing Reports" |
|||
action="mrp_wizard_action" sequence="5"/> |
|||
|
|||
</data> |
|||
</odoo> |
Loading…
Reference in new issue