From dc40cf274916d0f820c2ad0ace3d6c123aa3be9b Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Aubort Date: Fri, 22 Aug 2008 15:09:26 +0200 Subject: [PATCH] * default ir.model type is 'addons' bzr revid: jean-baptiste.aubort@camptocamp.com-20080822130926-mno267o52fhjxiiw --- bin/addons/base/ir/ir_model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/addons/base/ir/ir_model.py b/bin/addons/base/ir/ir_model.py index 3b33745321c..7b28a5f98d6 100644 --- a/bin/addons/base/ir/ir_model.py +++ b/bin/addons/base/ir/ir_model.py @@ -57,6 +57,7 @@ class ir_model(osv.osv): _defaults = { 'model': lambda *a: 'x_', 'state': lambda self,cr,uid,ctx={}: (ctx and ctx.get('manual',False)) and 'manual' or 'base', + 'type': 'addons', } def _check_model_name(self, cr, uid, ids): @@ -68,7 +69,7 @@ class ir_model(osv.osv): return False return True - #FIXME: We'll be back soon + #FIXME: Will be back soon #_constraints = [ # (_check_model_name, 'The model name must start with x_ and not contain any special character !', ['model']), #]