port to 17 bemade_hide_decimal_on_unit
This commit is contained in:
parent
ae35acf87f
commit
25e5ac4657
2 changed files with 6 additions and 7 deletions
|
|
@ -14,9 +14,8 @@
|
||||||
'purchase'
|
'purchase'
|
||||||
],
|
],
|
||||||
"data": [
|
"data": [
|
||||||
# BV : FOR MIGRATION
|
'views/sale.xml',
|
||||||
# 'views/sale.xml',
|
'views/purchase.xml'
|
||||||
# 'views/purchase.xml'
|
|
||||||
],
|
],
|
||||||
"auto_install": False,
|
"auto_install": False,
|
||||||
"installable": True,
|
"installable": True,
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<odoo>
|
<odoo>
|
||||||
<template id="report_purchasequotation_document_strip_decimal" inherit_id="purchase.report_purchasequotation_document">
|
<template id="report_purchasequotation_document_strip_decimal" inherit_id="purchase.report_purchasequotation_document">
|
||||||
<xpath expr="//tbody//td[hasclass('text-right')]" position="replace">
|
<xpath expr="//tbody//td[hasclass('text-end')]" position="replace">
|
||||||
<td name="td_quantity" class="text-right">
|
<td name="td_quantity" class="text-end">
|
||||||
<t t-if="int(order_line.product_uom_qty) == order_line.product_uom_qty">
|
<t t-if="int(order_line.product_uom_qty) == order_line.product_uom_qty">
|
||||||
<span t-esc="'%.0f' % order_line.product_uom_qty"/>
|
<span t-esc="'%.0f' % order_line.product_uom_qty"/>
|
||||||
</t>
|
</t>
|
||||||
|
|
@ -15,8 +15,8 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template id="report_purchaseorder_document_strip_decimal" inherit_id="purchase.report_purchaseorder_document">
|
<template id="report_purchaseorder_document_strip_decimal" inherit_id="purchase.report_purchaseorder_document">
|
||||||
<xpath expr="//tbody//td[hasclass('text-right')][1]" position="replace">
|
<xpath expr="//tbody//td[hasclass('text-end')][1]" position="replace">
|
||||||
<td name="td_quantity" class="text-right">
|
<td name="td_quantity" class="text-end">
|
||||||
<t t-if="int(line.product_uom_qty) == line.product_uom_qty">
|
<t t-if="int(line.product_uom_qty) == line.product_uom_qty">
|
||||||
<span t-esc="'%.0f' % line.product_uom_qty"/>
|
<span t-esc="'%.0f' % line.product_uom_qty"/>
|
||||||
</t>
|
</t>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue