Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
26
sale_order_secondary_unit/report/sale_report_templates.xml
Executable file
26
sale_order_secondary_unit/report/sale_report_templates.xml
Executable file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<template
|
||||
id="report_saleorder_document"
|
||||
inherit_id="sale.report_saleorder_document"
|
||||
>
|
||||
<xpath
|
||||
expr="//table[hasclass('o_has_total_table','table','o_main_table')]//th[@name='th_quantity']"
|
||||
position="before"
|
||||
>
|
||||
<th name="th_secondary_uom_id" class="text-end" groups="uom.group_uom">
|
||||
<span>Second. Qty</span>
|
||||
</th>
|
||||
</xpath>
|
||||
<xpath expr="//span[@t-field='line.product_uom_qty']/.." position="before">
|
||||
<td name="td_secondary_uom_id" class="text-end" groups="uom.group_uom">
|
||||
<t t-if="line.secondary_uom_id">
|
||||
<span t-field="line.secondary_uom_qty" />
|
||||
<span
|
||||
t-esc="' {}-{}-{}'.format(line.secondary_uom_id.name, line.secondary_uom_id.factor, line.secondary_uom_id.product_tmpl_id.uom_id.name)"
|
||||
/>
|
||||
</t>
|
||||
</td>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user