Mohammed Shekha(Open ERP) has proposed merging 
lp:~openerp-dev/openobject-client-web/6.0-opw-17386-msh into 
lp:openobject-client-web/6.0.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-17386-msh/+merge/74765

Hello,

To generate the problem goto HR -> Holidays -> Leave Summary -> Press Clear

After Clearing still you'll get result of current user because of domain 
[('employee.user_id':1)].

This was occuring due to Listgroup.py file in that we have not used deepcopy, 
and we are assigning domain into self.domain, now if we change self.domain then 
it will change domain also.

We are extending the self.domain with custom_filter_domain so that 
custom_filter_domain also assigned to domain because we have not used deepcopy.

So changed the code with deepcopy.

Thanks.

-- 
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-17386-msh/+merge/74765
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-client-web/6.0-opw-17386-msh.
=== modified file 'addons/openerp/widgets/listgroup.py'
--- addons/openerp/widgets/listgroup.py	2011-07-04 06:50:24 +0000
+++ addons/openerp/widgets/listgroup.py	2011-09-09 12:03:23 +0000
@@ -20,7 +20,7 @@
 ###############################################################################
 import random
 from operator import itemgetter
-
+import copy
 import cherrypy
 
 from openerp.utils import rpc
@@ -128,7 +128,7 @@
     def __init__(self, name, model, view, ids=[], domain=[], context={}, **kw):
 
         self.context = context or {}
-        self.domain = domain or []
+        self.domain = copy.deepcopy(domain) or []
         self.group_by_no_leaf = self.context.get('group_by_no_leaf', 0)
         self.selectable = kw.get('selectable', 0)
         self.editable = kw.get('editable', False)

_______________________________________________
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