Log transition of invoice and shipment states of sale and purchase
This commit is contained in:
1 parent
17bbce3919
commit
ea62dea8da
2 files changed
+5
No files matched your search
@@ -1012,8 +1012,11 @@ class Purchase(
|
||||
|
||||
for invoice_state, purchases in invoice_states.items():
|
||||
cls.write(purchases, {'invoice_state': invoice_state})
|
||||
cls.log(purchases, 'transition', f'invoice_state:{invoice_state}')
|
||||
for shipment_state, purchases in shipment_states.items():
|
||||
cls.write(purchases, {'shipment_state': shipment_state})
|
||||
cls.log(
|
||||
purchases, 'transition', f'shipment_state:{shipment_state}')
|
||||
Line.save(lines)
|
||||
|
||||
@classmethod
|
||||
|
||||
@@ -1098,8 +1098,10 @@ class Sale(
|
||||
|
||||
for invoice_state, sales in invoice_states.items():
|
||||
cls.write(sales, {'invoice_state': invoice_state})
|
||||
cls.log(sales, 'transition', f'invoice_state:{invoice_state}')
|
||||
for shipment_state, sales in shipment_states.items():
|
||||
cls.write(sales, {'shipment_state': shipment_state})
|
||||
cls.log(sales, 'transition', f'shipment_state:{shipment_state}')
|
||||
Line.save(lines)
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in new issue
Block a user