Kuldeep Joshi(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-974285-kjo into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #974285 in OpenERP Addons: "Error on sharing views"
https://bugs.launchpad.net/openobject-addons/+bug/974285
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-974285-kjo/+merge/102266
[FIX] Error on sharing views
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-974285-kjo/+merge/102266
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-974285-kjo.
=== modified file 'portal/wizard/share_wizard.py'
--- portal/wizard/share_wizard.py 2011-12-19 16:54:40 +0000
+++ portal/wizard/share_wizard.py 2012-04-17 09:40:43 +0000
@@ -140,7 +140,7 @@
# must take care of existing users, by adding them to the new group, which is group_ids[0],
# and adding the shortcut
selected_user_ids = [x.id for x in wizard_data.user_ids]
- self.pool.get('res.users').write(cr, UID_ROOT, selected_user_ids, {'groups_id': [(4,group_id)]})
+ self.pool.get('res.users').write(cr, UID_ROOT, selected_user_ids, {'groups_id': [(4,group_id[0])]})
self._setup_action_and_shortcut(cr, uid, wizard_data, selected_user_ids, make_home=False, context=context)
# populate the result lines for existing users too
for user in wizard_data.user_ids:
=== modified file 'share/wizard/share_wizard.py'
--- share/wizard/share_wizard.py 2012-03-28 09:00:52 +0000
+++ share/wizard/share_wizard.py 2012-04-17 09:40:43 +0000
@@ -737,7 +737,7 @@
# B.
main_domain = wizard_data.domain if wizard_data.domain != '[]' else DOMAIN_ALL
self._create_or_combine_sharing_rule(cr, current_user, wizard_data,
- group_id, model_id=model.id, domain=main_domain,
+ group_id, model_id=model.id, domain=str(main_domain),
restrict=True, context=context)
# C.
self._create_indirect_sharing_rules(cr, current_user, wizard_data, group_id, obj1, context=context)
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp