How to create dependent fields

how to create dependent fields so that when the value of the first field is selected, the value of the second field depends on the first

Use domain on the field.

For exemple :

<field name="partner" />
<field name="contract"... domain="self.partner = :partner" />

will show you every contract where the partner is the one selected from the first field.

2 « J'aime »

Thanks a lot for your help