Infinite search bug fix

This commit is contained in:
cosmos 2023-09-03 19:38:13 -05:00
parent 3b46ae9c78
commit de95b5c996

View File

@ -80,8 +80,7 @@ class Sale(metaclass=PoolMeta):
if (sale.state in cls._states_cached
and sale.untaxed_amount_cache is not None
and sale.tax_amount_cache is not None
and sale.total_amount_cache is not None
and sale.total_discount is not None):
and sale.total_amount_cache is not None):
untaxed_amount[sale.id] = sale.untaxed_amount_cache
total_discount[sale.id] = sale.total_discount_cache
if compute_taxes: