[O2M] Using the "id" field in a view used in pop-up creates errors

Bug #919184 reported by Francois Degrave
6
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.

Tags: o2m

Related branches

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
Revision history for this message
Fabien Meghazi (OpenERP) (fme) wrote :

Fixed in Revision:
2058 revid:<email address hidden>

Changed in openerp-web:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.