Do not reset non-existent fields on requisition in draft state
Closes #13532
This commit is contained in:
@@ -355,8 +355,6 @@ class PurchaseRequisition(Workflow, ModelSQL, ModelView):
|
||||
@reset_employee('approved_by', 'rejected_by')
|
||||
def draft(cls, requisitions):
|
||||
cls.write(requisitions, {
|
||||
'tax_amount_cache': None,
|
||||
'untaxed_amount_cache': None,
|
||||
'total_amount_cache': None,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user