Use a sequence of records, values in write
issue3499 review1641003
This commit is contained in:
1 parent
5eff62fd22
commit
e88bca18d5
1 file changed
+3
-3
+3
-3
@@ -465,9 +465,9 @@ class Production(Workflow, ModelSQL, ModelView):
|
||||
return productions
|
||||
|
||||
@classmethod
|
||||
def write(cls, productions, values):
|
||||
super(Production, cls).write(productions, values)
|
||||
for production in productions:
|
||||
def write(cls, *args):
|
||||
super(Production, cls).write(*args)
|
||||
for production in sum(args[::2], []):
|
||||
production._set_move_planned_date()
|
||||
|
||||
def _get_move_planned_date(self):
|
||||
|
||||
Reference in new issue
Block a user