← Back to team overview

openerp-india team mailing list archive

[Bug 936885] Re: Domain doesn't work well in search view in openerp

 

Hey Amit,

First of all thanks for your quick responce.

Could you please look into OpenERP web 6.0.3 ???

It is not working in openerp web.

Please do following thing.

--- > Select country as india

--- > Go to state field and try to search the states . All the states
from all the countries will be loaded.

Thanks,
hiren

-- 
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/936885

Title:
  Domain doesn't work well in search view in openerp

Status in OpenERP Addons (modules):
  Incomplete

Bug description:
  Hello Team,

  Recently I have founded a bug in openerp V6.0.3 . It's description is
  as follows,

  --> Go to Sales >> Address Book >> Addresses

  --> Now In search panel I have added on more field e.g. State
  [[ Basically  my purpose is  to search addresses by it's state, but out of 1000 of  states i want to have only states whose country is as I have selected in "Country" field in search view. ]]

  So i have added one more line in search view of res.partner.address
  object as follows,

  <field name="state_id" filter_domain="[('country_id','=',country_id)]"
  />

  {{  in above sentence i have tried following line as well but no
  success i have founded. (add domain instead of filter_domain)

               <field name="state_id"
  domain="[('country_id','=',country_id)]" />

  }}

  Now when I am going to search view and select country as "India" so in
  "State" field only 34 states whose country is "India" should be
  visible. Instead of that I am not able to see expected result.

  How can pass dynamic field in domain in search view of openerp ??

  Important : When we have 1000 or more states for 100 or more countries
  then It is very much important to have domain for them in search panel
  as well.

  Hope for good response,
  Hiren Vora,

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


References