diagram view of a new model has a 50% chance to cause an error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I wanted to implement a diagram view for new models of a new module. When I open the diagram view, I get an error (with OpenERP 7.0 rev 5138.5.119, but the same problem appears to be in trunk as well)
Server Traceback (most recent call last):
File "/home/
return openerp.
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
g.process(
File "/home/
self.
File "/home/
self.
File "/home/
one_level_el = self.tree_
IndexError: list index out of range
The problem is caused by the setup in addons/
The proposed bug solves the problem by using the given names for source and destination field in the iteration over all one2many fields.