Merge lp:~openerp-dev-web/openobject-client-web/o2m_improved into lp:~openerp-dev/openobject-client-web/trunk-dev-web
Proposed by
Vaibhav Darji
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~openerp-dev-web/openobject-client-web/o2m_improved |
Merge into: | lp:~openerp-dev/openobject-client-web/trunk-dev-web |
Diff against target: |
47 lines (+10/-8) 2 files modified
addons/openerp/widgets/form/_o2m.py (+2/-2) addons/openerp/widgets/form/templates/one2many.mako (+8/-6) |
To merge this branch: | bzr merge lp:~openerp-dev-web/openobject-client-web/o2m_improved |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Xavier (Open ERP) (community) | Approve | ||
Review via email: mp+24213@code.launchpad.net |
Description of the change
Improve o2m for unsaved parent when creating new child.
To post a comment you must log in.
Code is simple and pretty clean, which is nice, but from a UI standpoint there are still issues, I believe this needs deeper modifications as to how o2m is handled:
* (minor) the label on the "new o2m" button is still "save parent record" when parent is saved
* bigger issue, when an o2m is created the parent is automatically saved even though user never tried to save anything, and so if user changes mind (and goes do something else) record has still been created. Likewise, means one can not create o2m record if parent form is incomplete. Ideally, parent should be saved as late as possible (as in GTK client), meaning when *saving* the o2m record, not when adding new line I think
What do you think?