Kuldeep Joshi(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-902106-kjo into 
lp:openobject-addons.

Requested reviews:
  Bhumika (OpenERP) (sbh-openerp)
Related bugs:
  Bug #902106 in OpenERP Addons: "cannot share a meeting :need string or 
buffer, bool found"
  https://bugs.launchpad.net/openobject-addons/+bug/902106

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-902106-kjo/+merge/85432

Change the share wizard domain condition
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-902106-kjo/+merge/85432
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-902106-kjo.
=== modified file 'share/wizard/share_wizard.py'
--- share/wizard/share_wizard.py	2011-11-22 08:51:38 +0000
+++ share/wizard/share_wizard.py	2011-12-13 06:09:26 +0000
@@ -549,7 +549,7 @@
         rule_name = _('Indirect sharing filter created by user %s (%s) for group %s') % \
                             (current_user.name, current_user.login, group_id)
         try:
-            domain = safe_eval(wizard_data.domain)
+            domain = safe_eval(wizard_data.action_id.domain)
             if domain:
                 for rel_field, model in fields_relations:
                     related_domain = []
@@ -655,7 +655,7 @@
         all_relations = obj0 + obj1 + obj2
         self._link_or_copy_current_user_rules(cr, current_user, group_id, all_relations, context=context)
         # B.
-        main_domain = wizard_data.domain if wizard_data.domain != '[]' else DOMAIN_ALL
+        main_domain = wizard_data.action_id.domain if wizard_data.action_id.domain != '[]' else DOMAIN_ALL
         self._create_or_combine_sharing_rule(cr, current_user, wizard_data,
                      group_id, model_id=model.id, domain=main_domain,
                      restrict=True, 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

Reply via email to