From 2859897815a28ee645a9e1dc006fff382119cf6f Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 24 Oct 2013 15:54:48 +0200 Subject: [PATCH] [FIX] allow falsy extra attributes on fields. bzr revid: chs@openerp.com-20131024135448-e2bpgaqu7mvg1icn --- openerp/osv/fields.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openerp/osv/fields.py b/openerp/osv/fields.py index 1ebf5ec..da6dd72 100644 --- a/openerp/osv/fields.py +++ b/openerp/osv/fields.py @@ -117,8 +117,7 @@ class _column(object): self.groups = False # CSV list of ext IDs of groups that can access this field self.deprecated = False # Optional deprecation warning for a in args: - if args[a]: - setattr(self, a, args[a]) + setattr(self, a, args[a]) def restart(self): pass -- 1.7.10.4