diff --git a/addons/point_of_sale/models/pos_order.py b/addons/point_of_sale/models/pos_order.py index 9098e169f7d..028544a33be 100644 --- a/addons/point_of_sale/models/pos_order.py +++ b/addons/point_of_sale/models/pos_order.py @@ -204,7 +204,7 @@ class PosOrder(models.Model): invoice_lines = [] for line in self.lines: invoice_lines.append((0, None, self._prepare_invoice_line(line))) - if line.order_id.pricelist_id.discount_policy == 'without_discount' and line.price_unit != line.product_id.lst_price: + if line.order_id.pricelist_id.discount_policy == 'without_discount' and float_compare(line.price_unit, line.product_id.lst_price, precision_rounding=self.currency_id.rounding): invoice_lines.append((0, None, { 'name': _('Price discount from %s -> %s', float_repr(line.product_id.lst_price, self.currency_id.decimal_places),