literal string parameters to on_change not supported
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP R&D Web Team |
Bug Description
Example custom module (sorry didn't find an example in certified modules yet)
works in GTK
my blind guess - inheritance problem
http://
purchase_view.xml
<field name="inherit_id" ref="purchase.
....
<field
purchase.py
def onchange_
if price_pu and price_unit_id:
coeff = self.pool.
price = price_pu / coeff
return {'value': {field_name : price}}
return False
Related branches
- Fabien Meghazi (OpenERP): Approve
-
Diff: 237 lines (+150/-58)3 files modifiedaddons/web/static/src/js/view_form.js (+84/-58)
addons/web/static/test/onchange.js (+65/-0)
addons/web/static/test/test.html (+1/-0)
Changed in openerp-web: | |
assignee: | nobody → OpenERP R&D Web Team (openerp-dev-web) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openerp-web: | |
importance: | Low → Medium |
Changed in openerp-web: | |
status: | New → Fix Released |
Changed in openerp-web: | |
status: | Fix Released → New |
may be that this happens only if the field with the trigger is new in the module