when nested o2m are there. `New` for o2m does not work when o2m-level>1 in first go (when parent is not saved yet)
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Web Client | Status tracked in 6.0 | |||||
6.0 |
Fix Committed
|
Low
|
Unassigned | |||
Trunk |
Fix Released
|
Low
|
Unassigned |
Bug Description
Hello,
When we have nested o2m in an object, and assuming we are not saving parent record manually and no o2m is inline-editable.
on click of `New` for first-level o2m (say X) works fine, and opens empty-X-form in frame dialog
now in X's form, for second-level o2m (say Y) when we click on `New`, it saves X(means its parent) but could not open Y's form in first click. but once X is saved (manually or indirectly), we can create Y successfully.
Some fields of DOM could not be find in `edit` function of `One2Many` javascript class in first go when o2m-level>1.
you can test this in Human Resources -> Configuration -> Payroll -> Salary Structure (to test no o2m should be inline editable)
Note: this bug exist in web-client-trunk
Related branches
- OpenERP R&D Web Team: Pending requested
-
Diff: 35 lines (+9/-6)2 files modifiedaddons/openerp/controllers/openo2m.py (+4/-0)
addons/openerp/static/javascript/o2m.js (+5/-6)
Thanks For Reporting.