Sananaz (Open ERP) has proposed merging 
lp:~openerp-dev/openobject-client-web/6.0-opw-6369-sma 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-6369-sma/+merge/65484

Hello,

- Warehouse > Products Moves > Receive Products
  For this view the domain is: 
  ['|', '&', ('picking_id', '=', False), ('location_id.usage', 'in', 
['customer', 'supplier']), '&', ('picking_id', '!=', False), 
('picking_id.type', '=', 'in'), ('state', 'in', ('confirmed', 'assigned'))]
- Change the limit or click again on search, Now domain is change and it skip 
the another occurrence of `&` or '|' because of condition at 
addons/openerp/widgets/form_view.py line 63
- Functionally for this case it works fine. But if replace `&` with `|` then it 
create problem for domain.

Thanks.

-- 
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-6369-sma/+merge/65484
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-client-web/6.0-opw-6369-sma.
=== modified file 'addons/openerp/widgets/form_view.py'
--- addons/openerp/widgets/form_view.py	2011-04-20 12:27:59 +0000
+++ addons/openerp/widgets/form_view.py	2011-06-22 12:13:31 +0000
@@ -60,7 +60,7 @@
         search_param = params.search_domain or []
         params_domain = params.domain or []
         for element in params_domain:
-            if element not in search_param:
+            if element not in search_param or len(element) == 1:
                 if not isinstance(element,tuple):
                     search_param.append(element)
                 else:

_______________________________________________
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