Merge lp:~openerp-dev/openobject-server/6.0-opw-4364-jvo into lp:openobject-server/6.0
Status: | Merged |
---|---|
Merged at revision: | 3357 |
Proposed branch: | lp:~openerp-dev/openobject-server/6.0-opw-4364-jvo |
Merge into: | lp:openobject-server/6.0 |
Diff against target: |
12 lines (+1/-1) 1 file modified
bin/osv/orm.py (+1/-1) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-server/6.0-opw-4364-jvo |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Olivier Dony (Odoo) | Approve | ||
Review via email: mp+52076@code.launchpad.net |
Description of the change
Steps to Reproduce:
(Over Web client)
1. Open Any undone packing.
2. Click on Process now/validate.
3. You will see a window with the relevant moves on the window by default inside O2M. Remove them, click on validate. (Another problem here is that the o2m window doesn't get closed)
4. Click on process again.
And the error appears:
Traceback (most recent call last):
File "/home/
result = ExportService.
File "/home/
return super(recording
File "/home/
res = fn(db, uid, *params)
File "/home/
res = my_fct(db, uid, model, method, *args)
File "/home/
return fct_src(db, uid, model, method, *args)
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/
cr, uid, {}, context=
File "/home/
vals = self._add_
File "/home/
and isinstance(
IndexError: list index out of range
Thannks.
Refer to : http://
http://
(Thanks to Olivier Dony)
I would expect the defaults for empty o2m to be False rather than an empty list or tuple, but I guess it's better to take care of this case too.
The set() method of fields.one2many will handle False or [] properly, so we're safe there too.
Ship it :-)