← Back to team overview

openerp-india team mailing list archive

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

 

Hello Hiren Vora ,

I have checked your Issue at my end, But it's working fine for me. So I have attached the video for your reference. would you please check it and  notify us where you faced the problem.
Correct me If I am wrong!

Thank you and waiting for your reply!

** Attachment added: "domain work well in search view"
   https://bugs.launchpad.net/openobject-addons/+bug/936885/+attachment/2761867/+files/Search%20Contact.ogv

** Changed in: openobject-addons
       Status: New => Incomplete

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