Allow to modify unit_price_updated on closed period

issue11739
review418141003
This commit is contained in:
José Antonio Díaz
2022-09-29 23:42:06 +02:00
parent 95c1b6e286
commit c622adbff3
+2 -1
View File
@@ -308,7 +308,8 @@ class Move(Workflow, ModelSQL, ModelView):
'from_location', 'to_location', 'company', 'currency'])
cls._deny_modify_done_cancel = (cls._deny_modify_assigned
| set(['planned_date', 'effective_date', 'state']))
cls._allow_modify_closed_period = {'cost_price', 'unit_price'}
cls._allow_modify_closed_period = {
'cost_price', 'unit_price', 'unit_price_updated'}
t = cls.__table__()
cls._sql_constraints += [