-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] mrp_bom_report: Simplify report and add fields in origin module…
…'s report
- Loading branch information
Showing
2 changed files
with
22 additions
and
39 deletions.
There are no files selected for viewing
33 changes: 22 additions & 11 deletions
33
mrp_bom_line_product_brand_info/report/mrp_bom_report.xml
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 |
---|---|---|
@@ -1,16 +1,27 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<template | ||
id="report_mrp_bom_customized_document" | ||
inherit_id="mrp_bom_report.report_mrp_bom_customized_document" | ||
> | ||
<template id="report_mrp_bom_customized_document" inherit_id="mrp_bom_report.report_mrp_bom_customized_document"> | ||
<span id="product_name" position="after"> | ||
<span | ||
t-if="line and 'manufacturer_codes' in line and line['manufacturer_codes']" | ||
> | ||
<br /> | ||
<span t-esc="line['manufacturer_codes']" /> | ||
</span> | ||
<span t-if="line and 'manufacturer_codes' in line and line['manufacturer_codes']"> | ||
<br /> | ||
<span t-esc="line['manufacturer_codes']" /> | ||
</span> | ||
</span> | ||
</template> | ||
<xpath expr="//table/thead/tr" position="inside"> | ||
<th class="text-start">Product Code</th> | ||
<th class="text-start">Manufacturer Codes</th> | ||
<th class="text-start">Brand</th> | ||
</xpath> | ||
<xpath expr="//table/tbody//tr" position="inside"> | ||
<td class="text-start"> | ||
<span t-esc="bom_line_id['product_code'] or ''" /> | ||
</td> | ||
<td class="text-start"> | ||
<span t-esc="bom_line_id['manufacturer_codes'] or ''" /> | ||
</td> | ||
<td class="text-start"> | ||
<span t-esc="bom_line_id['markings'].name if bom_line_id['markings'] else ''" /> | ||
</td> | ||
</xpath> | ||
</template> | ||
</odoo> |
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