search new modules - constraint violation ir_model_data_module_name_uniq
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Invalid
|
Medium
|
Unassigned |
Bug Description
branch-server 1992
trying to search for new modules I get the (little helpful) message.
IMHO uniqu check must return the value which causes the vialotaion - if not no chance to track down the problem
Last revision No. & ID : 1992 <email address hidden>
Exception in call: Traceback (most recent call last):
File "/home/
action_res = action(self, cr, uid, data, context)
File "/home/
update, add = pooler.
File "/home/
'certificate': terp.get(
File "/home/
'noupdate': True,
File "/home/
cr.
File "/home/
return f(self, *args, **kwargs)
File "/home/
res = self._obj.
IntegrityError: duplicate key value violates unique constraint "ir_model_
Changed in openobject-server: | |
milestone: | none → 5.0.8 |
Changed in openobject-server: | |
importance: | Undecided → Medium |
after droping the index
alter table ir_model_data drop constraint ir_model_ data_module_ name_uniq ;
the problem was this
select name,module, count(* ) from ir_model_data group by name,module having count(1)>1 ------- ------- ----+-- ------- ------- ---+--- ---- meta_informatio n | report_openoffice | 2
;
name | module | count
-------
module_
./base/ module/ module. py: 'name': 'module_ meta_informatio n',