Don't failed when define the same id in the same module
We need this functionality to make some field updatable and some others none bzr revid: ced-34b89c7b7c45390cac9e66206ce19ced78b2e86d
This commit is contained in:
@@ -195,8 +195,6 @@ class ir_model_data(osv.osv):
|
||||
if xml_id:
|
||||
self.create(cr, uid, {'name':xml_id, 'model':model, 'module':module, 'res_id':res_id, 'noupdate':noupdate})
|
||||
if xml_id:
|
||||
if warning:
|
||||
assert (module,xml_id) not in self.loads, "id '%s' is already defined in module '%s' !" % (xml_id, module)
|
||||
if res_id:
|
||||
self.loads[(module,xml_id)] = (model, res_id)
|
||||
return res_id
|
||||
|
||||
Reference in New Issue
Block a user