diff --git a/bin/addons/base/base_data.xml b/bin/addons/base/base_data.xml index e41fccfe682..4777b7ea4f0 100644 --- a/bin/addons/base/base_data.xml +++ b/bin/addons/base/base_data.xml @@ -19,7 +19,7 @@ ir.ui.menu tree - + [('parent_id', '=', False)] diff --git a/bin/addons/base/ir/ir_model.py b/bin/addons/base/ir/ir_model.py index 4d0cc16f21e..471d4d2f6d9 100644 --- a/bin/addons/base/ir/ir_model.py +++ b/bin/addons/base/ir/ir_model.py @@ -55,7 +55,7 @@ class ir_model(osv.osv): if model.state=='manual': if not model.model.startswith('x_'): return False - if not re.match('^[a-z_A-Z0-9]+$',model.model): + if not re.match('^[a-z_A-Z0-9.]+$',model.model): return False return True diff --git a/bin/osv/fields.py b/bin/osv/fields.py index 544bd9b3fee..e0da8d38945 100644 --- a/bin/osv/fields.py +++ b/bin/osv/fields.py @@ -602,6 +602,9 @@ class function(_column): if store: self._classic_read = True self._classic_write = True + if type=='binary': + self._symbol_get=lambda x:x and str(x) + if type == 'float': self._symbol_c = float._symbol_c self._symbol_f = float._symbol_f