I have two many2one field pointing to contacts,
I would like the selection of the second one to be restricted to the contact "owned" by the first one.
For example, on an order I would like the selection of a "customer reference person" that has to be a contact of the customer company.
I found the solution setting the domain for older Odoo releases, but not for the newest ones.
https://www.odoo.com/forum/help-1/question/select-the-country-in-the-country-field-and-automatically-filter-the-states-of-that-country-in-the-state-field-157610#answer_157612