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:
ced
2007-09-20 08:48:20 +00:00
parent 3ab62add80
commit f2ed9c6887
-2
View File
@@ -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