domain like ['|',('ref','=','res.partner,1'),('ref2','=','res.partner,1')] fails on relate button

Bug #344092 reported by Shah Japan
2
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Fix Released
Undecided
Jay Vora (Serpent Consulting Services)

Bug Description

'|' ,'&", etc operators are not not working on the client side when used with the relate button.

<act_window name="Email Interface"
    domain="[ '|', ('ref','=','res.partner,%d'%active_id)),('ref2','=','res.partner,%d'%active_id))]"
    res_model="crm.case"
    src_model="res.partner"
    id="tinyoutlook1"/>

Traceback (most recent call last):
  File "/home/npa/openerp/stable/client/bin/widget/view/form.py", line 187, in _action
    value = obj._exec_action(act, data, context)
  File "/home/npa/openerp/stable/client/bin/modules/action/main.py", line 128, in _exec_action
    limit=datas['limit'], auto_refresh=datas['auto_refresh'])
  File "/home/npa/openerp/stable/client/bin/modules/gui/window/__init__.py", line 51, in create
    auto_refresh=auto_refresh)
  File "/home/npa/openerp/stable/client/bin/modules/gui/window/form.py", line 137, in __init__
    self.screen.search_filter()
  File "/home/npa/openerp/stable/client/bin/widget/screen/screen.py", line 180, in search_filter
    v.extend((key, op, value) for key, op, value in self.domain if key not in filter_keys and not (key=='active' and self.context.get('active_test', False)))
  File "/home/npa/openerp/stable/client/bin/widget/screen/screen.py", line 180, in <genexpr>
    v.extend((key, op, value) for key, op, value in self.domain if key not in filter_keys and not (key=='active' and self.context.get('active_test', False)))
ValueError: need more than 1 value to unpack

Revision history for this message
Husen Daudi (husendaudi) wrote :

For domain with expression is worked for search domain only,
for act_window it is not implemented yet. please create blueprint.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Thanks for reporting.

Changed in openobject-client:
assignee: nobody → jvo-openerp
status: New → In Progress
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Fixed in trunk and 5.0 both.
Kindly check and notify us.

Thanks.

Changed in openobject-client:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.