Reenact check_period_closed on creation (removed by changeset a4feb97fdf49)

review1041004
This commit is contained in:
Nicolas Évrard committed 2013-08-29 13:24:49 +02:00
1 parent 8965437cf8
commit 9c4fac4db7
1 file changed
+3 -1
+3 -1
View File
@@ -515,7 +515,9 @@ class Move(Workflow, ModelSQL, ModelView):
internal_quantity = cls._get_internal_quantity(vals['quantity'],
uom, product)
vals['internal_quantity'] = internal_quantity
return super(Move, cls).create(vlist)
moves = super(Move, cls).create(vlist)
cls.check_period_closed(moves)
return moves
@classmethod
def write(cls, moves, vals):