on_change event does not pass context to the method!
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Won't Fix
|
Low
|
Unassigned | ||
Odoo GTK Client (MOVED TO GITHUB) |
Won't Fix
|
Low
|
Unassigned | ||
Odoo Server (MOVED TO GITHUB) |
Won't Fix
|
Low
|
Unassigned | ||
Odoo Web Client |
Won't Fix
|
Low
|
Unassigned |
Bug Description
I wrote on_change event on product_id field in my object form to fill up another 'Description' field value with product name but what I notice it product name can not fetch according to language selected in preferences it fetch only English name.
def onchange_
res = {'desc': ''}
if product_id:
product = self.pool.
return {'value':res}
I also try to print context which I passed in 'onchange_
summary: |
- context not pass in on_change event + on_change event does not pass context to the method! |
Changed in openobject-client: | |
importance: | Undecided → Wishlist |
importance: | Wishlist → Undecided |
I am using latest stable version