← Back to team overview

openerp-india team mailing list archive

[Bug 1192484] Re: [stock][7.0]wrong search by context

 

Hello Julio Serna,

I went through your query given in comment 3, I also went through your
video.

After analysis I found that there is no issue with search, search is
behaving as expected because context is not used for search here, here
in product_view.xml field is defined for location_id, domain is
generated based on facets, as there are facets on location_id so domain
is created like ['|', ['location_id', '=', somevalue], ['location_id',
'=', somevalue]].

Significance of context is different, context is not going to be used
for search instead it is used to have some logic based on context value,
like here in standard module location value of context is used in
fields_view_get method of product.product(stock/product.py)

>>however when I want to do a search by context with several locations is only taking the last
No, domain created as expected, if you check your video you can see domain is created on two values location_id, '=', 18 or location_id, '=', 19.

Hope this will clears the picture on context and domain on field.

Thanks.

** Changed in: openobject-addons
       Status: New => Fix Committed

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1192484

Title:
  [stock][7.0]wrong search by context

Status in OpenERP Addons (modules):
  Fix Committed

Bug description:
  1.-Steps to reproduce the issue you have observed
  go to Warehouse / Products
  search  "stock"
  and choose one location

  2.- The result you observed
  When choose location shows Error

  3.-The result you expected
  shows no errors

  4.-
  runbot (Build 13901)

  Note: I uploaded a video  http://youtu.be/rglT48auAWA

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1192484/+subscriptions