Fix name of anglo_saxon_quantity introduced in 58e4a407b295

review2621002
This commit is contained in:
Nicolas Évrard
2014-02-03 18:01:23 +01:00
parent 263118d436
commit 9224708f4b
+2 -1
View File
@@ -30,7 +30,8 @@ class Move:
@classmethod
def __setup__(cls):
super(Move, cls).__setup__()
cls._allow_modify_closed_period.add('anglo_saxon_quantity')
cls._allow_modify_closed_period.update(['in_anglo_saxon_quantity',
'out_anglo_saxon_quantity'])
cls._sql_constraints += [
('check_in_anglo_saxon_quantity',
'CHECK(quantity >= in_anglo_saxon_quantity)',