← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 697823] Re: wgong behaviour of domain and search on fields.related

 

Hello,

I have tested your scenario with the latest code at my end. Here I have
checked it with the "sale.order" object instead of your customized
object "transport_order". I did get the same results from both queries
specified in the bug specification with filtered records according to
the domain. So I am closing this bug. If you still face the same problem
again then you can attach your customized module for the further
assessment.

Thanks.

** Changed in: openobject-server
       Status: New => Invalid

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/697823

Title:
  wgong behaviour of domain and search on fields.related

Status in OpenObject Server:
  Invalid

Bug description:
  sale_order_line_ids=pooler.get_pool(cr.dbname).get('sale.order.line').search(cr, uid, [('order_id.partner_id','=',transport_order.partner_id.id)])

works in a different way than 

sale_order_line_ids=pooler.get_pool(cr.dbname).get('sale.order.line').search(cr, uid, [('order_partner_id','=',transport_order.partner_id.id)])

The latter returns all objects when no match is found





References