change the state to processing in function process_sale_pos

This commit is contained in:
KevinMendez01 2021-01-15 16:08:18 -05:00
parent 5c63be50a0
commit 318cbd4889

View file

@ -418,7 +418,7 @@ 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': 'confirmed',
'state': 'processing',
'untaxed_amount_cache': sale.untaxed_amount,
'tax_amount_cache': sale.tax_amount,
'total_amount_cache': sale.total_amount