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'
|
||||
],
|
||||
"data": [
|
||||
# BV : FOR MIGRATION
|
||||
# 'views/sale.xml',
|
||||
# 'views/purchase.xml'
|
||||
'views/sale.xml',
|
||||
'views/purchase.xml'
|
||||
],
|
||||
"auto_install": False,
|
||||
"installable": True,
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<template id="report_purchasequotation_document_strip_decimal" inherit_id="purchase.report_purchasequotation_document">
|
||||
<xpath expr="//tbody//td[hasclass('text-right')]" position="replace">
|
||||
<td name="td_quantity" class="text-right">
|
||||
<xpath expr="//tbody//td[hasclass('text-end')]" position="replace">
|
||||
<td name="td_quantity" class="text-end">
|
||||
<t t-if="int(order_line.product_uom_qty) == order_line.product_uom_qty">
|
||||
<span t-esc="'%.0f' % order_line.product_uom_qty"/>
|
||||
</t>
|
||||
|
|
@ -15,8 +15,8 @@
|
|||
</template>
|
||||
|
||||
<template id="report_purchaseorder_document_strip_decimal" inherit_id="purchase.report_purchaseorder_document">
|
||||
<xpath expr="//tbody//td[hasclass('text-right')][1]" position="replace">
|
||||
<td name="td_quantity" class="text-right">
|
||||
<xpath expr="//tbody//td[hasclass('text-end')][1]" position="replace">
|
||||
<td name="td_quantity" class="text-end">
|
||||
<t t-if="int(line.product_uom_qty) == line.product_uom_qty">
|
||||
<span t-esc="'%.0f' % line.product_uom_qty"/>
|
||||
</t>
|
||||
|
|
|
|||
Loading…
Reference in a new issue