Hiiii...
I have a one2many field which contains 3 fields with 2 different values, for example. Here let's say the Zone is a one2many field.
Query;
Zone A = Car = 3000, Bike = 2000.
Zone B = Car = 2500, Bike = 1500.
Zone C = Car = 2000, Bike = 1000.
and I have many2one fields for the chosen field later (Ex. Car and Bike)
and rate_fields as trigger fields for calculations(a place to store value later)
the point is I want to select the "A" zone, then I select "Car" in many2one fields
the output at the rate field is 3000,
and if I select zone "B" then select "Bike" the output at the rate field is 1500
if written with code, then the implementation uses filter by domain with domain syntax Multiple Conditions.
Can anyone help me to make an example code?
maybe this is a reference but I can't make the appropriate code
Multiple Conditions
In Programming
if a = 5 or (b != 10 and c = 12)
In Open ERP domain filter
['|',('a','=',5),('&',('b','!=',10),('c','=',12))]
https://stackoverflow.com/a/19070664/9228786
Thank you in advance!! :D