* default ir.model type is 'addons'

bzr revid: jean-baptiste.aubort@camptocamp.com-20080822130926-mno267o52fhjxiiw
This commit is contained in:
Jean-Baptiste Aubort 2008-08-22 15:09:26 +02:00
parent bb19863302
commit dc40cf2749
1 changed files with 2 additions and 1 deletions

View File

@ -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']),
#]