minor fix

This commit is contained in:
wilson gomez sanchez 2021-01-29 16:05:16 -05:00
parent eed7f2acb0
commit 9cfde8b094

View file

@ -418,8 +418,8 @@ class Sale(metaclass=PoolMeta):
def process_sale_pos(cls, sale):
# We must set directly state and amounts cache because is faster
cls.write([sale], {
# 'state': 'processing',
'state': 'confirmed',
'state': 'processing',
# 'state': 'confirmed',
'untaxed_amount_cache': sale.untaxed_amount,
'tax_amount_cache': sale.tax_amount,
'total_amount_cache': sale.total_amount