User-defined filters translated name not displayed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP Publisher's Warranty Team |
Bug Description
Hello,
The user-defined filters (ir.filters) have a name field translatable.
But the translation is never displayed to users because the context is not passed to the method which returns the list of filters:
def get_filters(self, cr, uid, model):
"""Obtain the list of filters available for the user on the given model.
:return: list of :meth:`
"""
# available filters: private filters (user_id=uid) and public filters (uid=NULL)
act_ids = self.search(cr, uid, [('model_
my_acts = self.read(cr, uid, act_ids, ['name', 'domain', 'context', 'user_id'])
return my_acts
A user connected with french language goes to the menu to manage filters, he modifies the name of his filter (so the french translation is updated, but not the english one), but the english name will still be displayed in the filters' selection list. This is misunderstanding because he think that the renaming is not working.
The issue is less visible in trunk version as the "Manage filters" options is not anymore displayed. But the filter's name is still translatable so the issue may still happen.
Thanks
Guewen
Related branches
- Florent (community): Approve
- Naresh(OpenERP): Pending requested
-
Diff: 14 lines (+2/-1)1 file modifiedopenerp/addons/base/ir/ir_filters.py (+2/-1)
Changed in openobject-server: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in openobject-server: | |
status: | New → Confirmed |
importance: | Undecided → Low |
status: | Confirmed → In Progress |
Hello Guewen,
Please find the fix in below branch,
lp:~openerp-dev/openobject-addons/6.1-opw-574251-rha
r4262, <email address hidden>
Thanks for reporting,
Rifakat Haradwala