(_check_xml, 'Invalid XML for View Architecture!', ['arch'])
]
- def create(self, cr, uid, vals, context={}):
- if 'inherit_id' in vals and vals['inherit_id']:
- obj=self.browse(cr,uid,vals['inherit_id'])
- child=self.pool.get(vals['model'])
- error="Inherited view model [%s] and \
- \n\n base view model [%s] do not match \
- \n\n It should be same as base view model " \
- %(vals['model'],obj.model)
- try:
- if obj.model==child._inherit:
- pass
- except:
- if not obj.model==vals['model']:
- raise Exception(error)
-
- return super(view,self).create(cr, uid, vals, context={})
-
def read(self, cr, uid, ids, fields=None, context={}, load='_classic_read'):
if not isinstance(ids, (list, tuple)):