[7.0/trunk] pyeval.js wrap_context should check for undefined variables

Bug #1211650 reported by Andrius Preimantas @ hbee
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Confirmed
Low
OpenERP R&D Web Team

Bug Description

web revno: 4011
server revno: 5047
addons revno: 9358

This one is very technical so I'll let the attached video explain what is wrong.

The button seen in the video is the one I've implemented to open product of the order line. Here's the button declaration:
<button name="open_product_id" type="object" string="Open Product" icon="gtk-open" context="{'product_id': product_id}"/>

As you can see, I try to set context value, which (I think) invokes the method wrap_context. If I remove the context in the button declaration, everything works fine.

Revision history for this message
Andrius Preimantas @ hbee (andrius-preimantas) wrote :
Changed in openerp-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
importance: Undecided → Low
status: New → Confirmed
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.