openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #14831
[Bug 1036540] Re: User-defined filters translated name not displayed
** Changed in: openobject-server
Status: New => Confirmed
** Changed in: openobject-server
Importance: Undecided => Low
** Changed in: openobject-server
Status: Confirmed => In Progress
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1036540
Title:
User-defined filters translated name not displayed
Status in OpenERP Server:
In Progress
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:`~osv.read`-like dicts containing the ``name``,
``domain``, ``user_id`` (m2o tuple) and ``context`` of the matching ``ir.filters``.
"""
# available filters: private filters (user_id=uid) and public filters (uid=NULL)
act_ids = self.search(cr, uid, [('model_id','=',model),('user_id','in',[uid, False])])
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1036540/+subscriptions
References