User-defined filters translated name not displayed

Bug #1036540 reported by Guewen Baconnier @ Camptocamp
14
This bug affects 3 people
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:`~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

Tags: maintenance

Related branches

Changed in openobject-server:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :
Changed in openobject-server:
status: New → Confirmed
importance: Undecided → Low
status: Confirmed → In Progress
Revision history for this message
Rifakat Husen (OpenERP) (rha-openerp) wrote :

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

Changed in openobject-server:
status: In Progress → Fix Committed
Revision history for this message
Xavier ALT (dex-phx) wrote :

Hi,

Fix landed on stable v6.1 branch with revid: <email address hidden>

Regards,
Xavier

Changed in openobject-server:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.