Nehal Panchal (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-server/6.0-opw-50841-nep into 
lp:openobject-server/6.0.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-server/6.0-opw-50841-nep/+merge/86890

Hello,

If we give same XML Identifier for the different models, it will override the 
data of same XML Identifier instead of creating new data in ir_model_data 
object.

This fixes the issue.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openobject-server/6.0-opw-50841-nep/+merge/86890
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-server/6.0-opw-50841-nep.
=== modified file 'bin/addons/base/ir/ir_model.py'
--- bin/addons/base/ir/ir_model.py	2011-09-29 05:09:38 +0000
+++ bin/addons/base/ir/ir_model.py	2011-12-26 10:35:28 +0000
@@ -575,7 +575,7 @@
         'module': ''
     }
     _sql_constraints = [
-        ('module_name_uniq', 'unique(name, module)', 'You cannot have multiple records with the same id for the same module !'),
+        ('module_name_uniq', 'unique(name, model, module)', 'You cannot have multiple records with the same id for the same object of the same module !'),
     ]
 
     def __init__(self, pool, cr):

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to