fix: Se añada total_discount_cahce in get_amount
This commit is contained in:
parent
cbee1f4815
commit
e2400b75e3
3
sale.py
3
sale.py
@ -80,7 +80,8 @@ class Sale(metaclass=PoolMeta):
|
|||||||
if (sale.state in cls._states_cached
|
if (sale.state in cls._states_cached
|
||||||
and sale.untaxed_amount_cache is not None
|
and sale.untaxed_amount_cache is not None
|
||||||
and sale.tax_amount_cache is not None
|
and sale.tax_amount_cache is not None
|
||||||
and sale.total_amount_cache is not None):
|
and sale.total_amount_cache is not None
|
||||||
|
and sale.total_discount_cache is not None):
|
||||||
untaxed_amount[sale.id] = sale.untaxed_amount_cache
|
untaxed_amount[sale.id] = sale.untaxed_amount_cache
|
||||||
total_discount[sale.id] = sale.total_discount_cache
|
total_discount[sale.id] = sale.total_discount_cache
|
||||||
if compute_taxes:
|
if compute_taxes:
|
||||||
|
Loading…
Reference in New Issue
Block a user