minor fix

This commit is contained in:
Wilson Gomez 2023-10-07 12:59:39 -05:00
parent 12eb28cd4d
commit 277243943c
1 changed files with 2 additions and 0 deletions

View File

@ -179,6 +179,8 @@ class Sale(metaclass=PoolMeta):
to_create['salesman'] = args['salesman']
if args.get('table_assigned'):
to_create['table_assigned'] = args['table_assigned']
if args.get('kind'):
to_create['kind'] = args['kind']
sale, = cls.create([to_create])
if hasattr(sale, 'order_status'):
cls.write([sale], {'order_status': 'requested'})