Ajay Chauhan(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-opw-576076-port-cha into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-576076-port-cha/+merge/138910

Hello,

     Add to dashboard filter not translated when language is changed.

1. Create new database select english language.
2. Laod an official translation, language for ex: dutch.
3. Select language Dutch from setting => user.
4. Sales => Sale => Lead => From filter select Add to dashboard.
5. Click on menu sale.

Observed: 'Added action is in dutch and existed actions are in english. when 
click on reset then actions are in current language. If i changed language than 
also new created actions are not translated it is in from which language is 
created. It will not translated.'
Expected: 'Added action and existed actions should displayed in current 
language and when reset at that time should also displayed in current language 
and when changed the language at that time should displayed in changed 
language.'

When we add to dashboard at that time the action is prepared with current user 
preferences & that's why that action do not react when we change language of 
current user, it is always stick to preferences of creation time.

forward port from 6.1 
courtsey: Bhumi Thakkar

Thanks,
Ajay Chauhan
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-576076-port-cha/+merge/138910
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-opw-576076-port-cha.
=== modified file 'board/controllers.py'
--- board/controllers.py	2012-11-26 14:04:23 +0000
+++ board/controllers.py	2012-12-11 08:58:19 +0000
@@ -22,12 +22,15 @@
                 if board and 'arch' in board:
                     xml = ElementTree.fromstring(board['arch'])
                     column = xml.find('./board/column')
+                    ctx = context_to_save.copy()
                     if column is not None:
+                        if 'lang' in ctx:
+                            del ctx['lang']
                         new_action = ElementTree.Element('action', {
                             'name': str(action_id),
                             'string': name,
                             'view_mode': view_mode,
-                            'context': str(context_to_save),
+                            'context': str(ctx),
                             'domain': str(domain)
                         })
                         column.insert(0, new_action)

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : openerp-dev-gtk@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to