mirror of
https://github.com/OCA/OCB.git
synced 2026-04-23 19:14:53 -06:00
1
OLD 7.0 2015 01 16
Xavier Brochard edited this page 2021-10-29 23:49:53 +02:00
Conflict:
diff --cc openerp/addons/base/res/res_users.py
index e1ce2e5,0e48898..0000000
--- a/openerp/addons/base/res/res_users.py
+++ b/openerp/addons/base/res/res_users.py
@@@ -705,10 -705,9 +705,16 @@@ class groups_view(osv.osv)
def update_user_groups_view(self, cr, uid, context=None):
# the view with id 'base.user_groups_view' inherits the user form view,
# and introduces the reified group fields
++<<<<<<< HEAD
+ if context is None:
+ context = {}
+ if not context or context.get('install_mode'):
+ context = dict(context)
++=======
+ if not context or context.get('install_mode'):
+ # use installation/admin language for translatable names in the view
+ context = dict(context or {})
++>>>>>>> odoo/7.0
context.update(self.pool['res.users'].context_get(cr, uid))
view = self.get_user_groups_view(cr, uid, context)
if view:
resolved as:
diff --git a/openerp/addons/base/res/res_users.py b/openerp/addons/base/res/res_users.py
index e1ce2e5..0e48898 100644
--- a/openerp/addons/base/res/res_users.py
+++ b/openerp/addons/base/res/res_users.py
@@ -705,10 +705,9 @@ class groups_view(osv.osv):
def update_user_groups_view(self, cr, uid, context=None):
# the view with id 'base.user_groups_view' inherits the user form view,
# and introduces the reified group fields
- if context is None:
- context = {}
if not context or context.get('install_mode'):
- context = dict(context)
+ # use installation/admin language for translatable names in the view
+ context = dict(context or {})
context.update(self.pool['res.users'].context_get(cr, uid))
view = self.get_user_groups_view(cr, uid, context)
if view:
(basically reverting github.com/OCA/OCB@df635820d and use github.com/odoo/odoo@894143cb4c)
Committed as github.com/OCA/OCB@fbb986be30 by @hbrunn