openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #04259
[Bug 1279885] Re: [i18n] [m2m] in tree view loses context
** Also affects: ocb-web
Importance: Undecided
Status: New
** Changed in: ocb-web
Status: New => Fix Released
--
You received this bug notification because you are a member of OpenERP
Community Backports Team, which is subscribed to OpenERP Community
Backports (Web).
https://bugs.launchpad.net/bugs/1279885
Title:
[i18n] [m2m] in tree view loses context
Status in OpenERP Community Backports (Web):
Fix Released
Status in OpenERP Web:
New
Bug description:
Problem:
Many2many fields in Tree views will not get translated.
If you check the context for a name_get of a m2m field, it is passed as None.
How to replicate:
Create Model A with a name_get, make parts of the name_get translatable.
Create Model B with a m2m reference to Model A.
Create a TreeView for B with a field for the m2m Model A.
Load translations and change language.
Expected output:
The TreeView for B will show comma-separated names for the Model A elements.
These names will be translated according to i18n.
A check of context in the name_get function while fetching the tree view will have context with the 'lang' key.
Actual output:
The TreeView for B will show comma-separated names for the Model A elements.
These names show in their original form, no localization.
A check of context in the name_get function while fetching the tree view will have context as None.
Version:
openerp-web: r4138
To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-web/+bug/1279885/+subscriptions