Hi ! I'm on Odoo (v8).
A user can change the value of a many2one field.
There should be another field, probably many2many, with many2many_cheboxes as widget type, which would be computed, depending on the value of the first field.
If the user select 'computer' in the first field, the second field will show 'format', 'diagnosis' and 'change screen' for example. Then the user will be able to check which reparation he wants to choose (multi-selection, that explain the checkboxes).
Is it even possible ?
Yes it is possible,
first you'll save the services on the 'many2one' field [e.g "computer" ] I think it'll be one2many. So in the computer form you have the list of services e.g 'format', 'diagnosis' and 'change screen' etc ..
In your main form [ where the user chooses the type e.g computer] I think it is better to make a one2many relation with e.g service_line 'just like the sale order' if you need to enter the price or something ... and you use on_change method to fill this one2many lines with the services ...
I hope it will helps
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 3/19/15, 9:38 AM|
|Seen: 321 times|
|Last updated: 3/19/15, 10:13 AM|