[FIX] translations: fix tests to adapt to new duplication behaviour and remove contex...
[odoo/odoo.git] / openerp / osv / fields.py
index 8084fa7..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
@@ -229,7 +228,6 @@ class char(_column):
     def __init__(self, string="unknown", size=None, **args):
         _column.__init__(self, string=string, size=size or None, **args)
         # self._symbol_set_char defined to keep the backward compatibility
-        # use lamda function to be able to get the field size
         self._symbol_f = self._symbol_set_char = lambda x: _symbol_set_char(self, x)
         self._symbol_set = (self._symbol_c, self._symbol_f)