Merge lp:~openerp-dev/openobject-addons/6.1-opw-582368-bde into lp:openobject-addons/6.1

Proposed by Bharat Devnani (Open ERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-582368-bde
Merge into: lp:openobject-addons/6.1
Diff against target: 12 lines (+1/-1)
1 file modified
share/wizard/ (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-582368-bde
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email:

Description of the change


Steps to reproduce the traceback:

1) Click on share wizard.
2) Fill required details.
3) Click share button.

I have back ported solution form v7.0, by converting the DOMAIN_ALL in str.

Thanks & Regards,
Devnani Bharat R.

To post a comment you must log in.

Unmerged revisions

7086. By Bharat Devnani (Open ERP)

[IMP] share: converted domain_all to str for eval() as it requires 1st argument as str or object

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'share/wizard/'
2--- share/wizard/ 2012-04-27 08:30:59 +0000
3+++ share/wizard/ 2012-11-30 13:06:24 +0000
4@@ -726,7 +726,7 @@
5 all_relations = obj0 + obj1 + obj2
6 self._link_or_copy_current_user_rules(cr, current_user, group_id, all_relations, context=context)
7 # B.
8- main_domain = wizard_data.domain if wizard_data.domain != '[]' else DOMAIN_ALL
9+ main_domain = wizard_data.domain if wizard_data.domain != '[]' else str(DOMAIN_ALL)
10 self._create_or_combine_sharing_rule(cr, current_user, wizard_data,
11 group_id,, domain=main_domain,
12 restrict=True, context=context)