[O2M] Using the "id" field in a view used in pop-up creates errors
Bug #919184 reported by
Francois Degrave
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP R&D Web Team |
Bug Description
Hi!
Say I have two objects A and B, A having a o2m to B.
When I create a B object from A view ("create" button in the O2M field), a pop-up shows-up. When I'm done, if I click "Save & New" or "Save & Close", there is no new form in the first case, and the pop-up doesn't close in the second case.
A javascript error appears in the console: [_.sprintf] expecting number but found string
I noticed that it happens only if I use the "id" field in B's view.
I tried to trace the error and the further I got is line 175 of view_form.js, when "set_value" is called in "on_record_loaded" function.
Related branches
lp:~openerp-dev/openerp-web/trunk-id-special-case-fme
- Xavier (Open ERP) (community): Approve
-
Diff: 67 lines (+17/-0)4 files modifiedaddons/web/controllers/main.py (+6/-0)
addons/web/static/src/js/formats.js (+2/-0)
addons/web/static/src/js/view_form.js (+8/-0)
addons/web/static/src/js/view_page.js (+1/-0)
summary: |
- Using the "id" field in a view used in pop-up creates errors + [O2M] Using the "id" field in a view used in pop-up creates errors |
tags: | added: o2m |
Changed in openerp-web: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openerp-web: | |
assignee: | nobody → OpenERP R&D Web Team (openerp-dev-web) |
Changed in openerp-web: | |
status: | Confirmed → In Progress |
To post a comment you must log in.
Fixed in Revision:
2058 revid:<email address hidden>