From 9224708f4b17bf1990edb5fa8d6d1aa3f1d9c488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Mon, 3 Feb 2014 18:01:23 +0100 Subject: [PATCH] Fix name of anglo_saxon_quantity introduced in 58e4a407b295 review2621002 --- stock.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stock.py b/stock.py index b2e11a9706..1cc988d9df 100644 --- a/stock.py +++ b/stock.py @@ -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)',