[FIX] point-of-sale: discount line on ticket

Before this fix an extra line with the price without discount will be
printed even if there is no discount on the product.

After this fix the line will only be printed if there is a discount.

The error occured due to the use of t-else instead of t-elif.

closes odoo/odoo#32989

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
Gert Pellin
2019-04-26 13:44:33 +00:00
parent 617ba2887a
commit 26c4acc761
+1 -1
View File
@@ -805,7 +805,7 @@
</left>
</line>
</t>
<t t-else='line.discount !== 0'>
<t t-elif='line.discount !== 0'>
<line indent='1'>
<left>
<value t-att-value-decimals='pos.dp["Product Price"]'>