summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2021-02-17 15:05:23 +0000
committerNicolas Lempereur <nle@odoo.com>2021-02-17 15:13:32 +0000
commit7822b5bc76b2cbc1534b8df8d0bb3b5a3b50db0e (patch)
tree749fc39cc8bde10e1d3b123a3a884d9ca2e66f6f
parent176046304cc21daa839290df070170fa6ce2509d (diff)
[FIX] stock: variant price on report Product Label (ZPL)
With this change, we show the variant price when printing ZPL product.product report and not the template as we did before. This way it is the same as what we see in Odoo as well as when printing PDF label of the product. targetting only 14.0 for now (but could be backported in stock_zebra) opw-2455291 closes odoo/odoo#66385 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
-rw-r--r--addons/stock/report/product_templates.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/stock/report/product_templates.xml b/addons/stock/report/product_templates.xml
index 4d27dfe463d..20b0faba8a9 100644
--- a/addons/stock/report/product_templates.xml
+++ b/addons/stock/report/product_templates.xml
@@ -34,11 +34,11 @@
^FO100,100
<t t-if="product.currency_id.position == 'after'">
^CI28
-^A0N,44,33^FH^FDPrice: <t t-esc="product.list_price" t-options='{"widget": "float", "precision": 2}'/><t t-esc="product.currency_id.symbol"/>^FS
+^A0N,44,33^FH^FDPrice: <t t-esc="product.lst_price" t-options='{"widget": "float", "precision": 2}'/><t t-esc="product.currency_id.symbol"/>^FS
</t>
<t t-if="product.currency_id.position == 'before'">
^CI28
-^A0N,44,33^FH^FDPrice: <t t-esc="product.currency_id.symbol"/><t t-esc="product.list_price" t-options='{"widget": "float", "precision": 2}'/>^FS
+^A0N,44,33^FH^FDPrice: <t t-esc="product.currency_id.symbol"/><t t-esc="product.lst_price" t-options='{"widget": "float", "precision": 2}'/>^FS
</t>
<t t-if="product.barcode">
^FO100,150^BY3