I am making a many2one field using domain to control the records.
what should I put to my file if the domain is using a value from the form but not hard code?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I am making a many2one field using domain to control the records.
what should I put to my file if the domain is using a value from the form but not hard code?
If it's not hard coded, you put the domain statement on the XML, i.e:
<field name="sequence_id" domain="[('documento_tipo_id','=',doc_type)]" />
doc_type and sequence_id are many2one objects on my form
Create an account today to enjoy exclusive features and engage with our awesome community!
Registracija
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.