Context is not passed to name_get() in many2one widget in read-only form view
Bug #1297882 reported by
Lionel Sausin - Initiatives/Numérigraphe
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
In the current v7, I noticed that when I set a context on a many2one widget, it is not sent to the server in some situations :
- in the "view ony" form view
- in the editable field in "edit" view
It is however correctly passed to the pop-up list under the editable field in edit mode.
It is also correctly passed to other widgets lik.e many2many-tags
Related branches
Changed in openerp-web: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
summary: |
- Context is lost in many2one widget + Context is lost in many2one widget in read-only view |
summary: |
- Context is lost in many2one widget in read-only view + Context is lost in many2one widget in read-only form view |
To post a comment you must log in.
Here is an illustration of this bug: I'm testing the module l10n_fr_naf from lp:openerp-data.
In partners, it adds a many2one to categories. It also imports a big file of official categories, with a 6 levels deep hierarchy.
So it uses a context key to demand short category names for display.
In the attached video you can see that the long name is returned instead, except in the pop-up list. You can see from the console that the key is missing from the context ("LONG" is printed on the console).