openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #07704
[Bug 936885] [NEW] Domain doesn't work well in search view in openerp
Public bug reported:
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,
** Affects: openobject-addons
Importance: Undecided
Status: New
** Tags: domain in openerp search view
--
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):
New
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
Follow ups
References