Do not reset non-existent fields on requisition in draft state

Closes #13532
(grafted from 35037337ef21b2510ce561803b07b7413bb72e95)

--HG--
branch : 6.0
This commit is contained in:
Maxime Richez committed 2024-09-19 13:55:32 +02:00
1 parent 24f7461f35
commit de4f99d8be
1 file changed
-2
-2
View File
@@ -376,8 +376,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,
})