Do not reset non-existent fields on requisition in draft state
Closes #13532 (grafted from 35037337ef21b2510ce561803b07b7413bb72e95) --HG-- branch : 7.0
This commit is contained in:
1 parent
33e384c145
commit
2a1bc4a4f1
1 file changed
-2
@@ -345,8 +345,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