Compare commits
2 Commits
92f1f5b76d
...
f0b70e7db2
Author | SHA1 | Date |
---|---|---|
Wilson Gomez | f0b70e7db2 | |
Wilson Gomez | 9d509b4dcd |
4
sale.py
4
sale.py
|
@ -42,6 +42,7 @@ class Sale(metaclass=PoolMeta):
|
|||
field_status_order = 'status_order' in Line._fields
|
||||
records = cls.browse([args['id']])
|
||||
lines_action = args.get('lines')
|
||||
if lines_action:
|
||||
for action, lines in lines_action:
|
||||
# action, lines = lines_tuple
|
||||
if action == 'create' and len(lines) > 0:
|
||||
|
@ -182,7 +183,8 @@ class Sale(metaclass=PoolMeta):
|
|||
if hasattr(sale, 'order_status'):
|
||||
cls.write([sale], {'order_status': 'requested'})
|
||||
|
||||
cls.write([sale], {'state': 'quotation'})
|
||||
# this option is not possible because order can receive new products
|
||||
# cls.write([sale], {'state': 'quotation'})
|
||||
cls.set_number([sale])
|
||||
sale.save()
|
||||
record = args.copy()
|
||||
|
|
Loading…
Reference in New Issue