Cristian, based on the example you give in the description, it seems
you're trying to use the value of a selection widget (caste_id) as a
dynamic value in the domain of another field that is *not* a selection
widget (caste_sub_id).

First, keep in mind that dynamic domains are not supported on selection
widgets because the values are static and determined when the view is
loaded. So in your example, 'caste_sub_id' could not be a selection
field.

Now, coming back to your example, everything seems to be working as expected, 
I've just tested this on trunk, 6.0.3 and 6.0.2 and it works everywhere with on 
a trivial case: the sale order form. I changed the Customer field to be a 
selection. It's very simple, just add widget="selection" to the partner_id 
field in the sale order form view.
It works as expected, when you click on the search icon next to any of the 
address fields you can only choose addresses from the selected partner. See the 
attached screenshot taken on 6.0.2 where you can see the domain being passed 
correctly in the XML-RPC request too.

If this is not the same bug as what you are describing, please give
complete steps to reproduce, and please give a full example using one of
the standard OpenERP addons if possible, as I did with the sale.order
form. In the mean time, I'm setting this bug to Incomplete.

PS: Please do not confirm or assign your own bugs, otherwise you're
bypassing the qualification process, and preventing our teams to provide
more info to reproduce it. OpenERP Drivers may help to qualify others'
bug reports, but should not abuse this privilege to confirm and assign
their own bug reports.

** Attachment added: "Demo of this working on 6.0.2"
   
https://bugs.launchpad.net/openobject-client/+bug/778016/+attachment/2608113/+files/filter_based_on_selection.png

** Changed in: openobject-client
   Importance: Wishlist => Undecided

** Changed in: openobject-client
       Status: Confirmed => Incomplete

** Changed in: openobject-client
     Assignee: OpenERP sa GTK client R&D (openerp-dev-gtk) => (unassigned)

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

Title:
  Domain does not works with widget= "selection"

Status in OpenERP GTK Client:
  Incomplete

Bug description:
  if widget= "selection" domain not working in openerp 6.0.2
  example
  <field name="caste_id"  widget="selection"/>
                                <field name="caste_sub_id" 
domain="[('caste','=',caste_id)]"/>

  Is it possible give me a solution

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

_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to