[FIX] allow falsy extra attributes on fields.
authorChristophe Simonis <chs@openerp.com>
Thu, 24 Oct 2013 13:54:48 +0000 (15:54 +0200)
committerChristophe Simonis <chs@openerp.com>
Thu, 24 Oct 2013 13:54:48 +0000 (15:54 +0200)
bzr revid: chs@openerp.com-20131024135448-e2bpgaqu7mvg1icn

openerp/osv/fields.py

index 1ebf5ec..da6dd72 100644 (file)
@@ -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