Odoo 14 EE
View: account.move.form
I want to set a conditional domain on the field "res_partner" in account.move.form.
If the "move_type" is "out_invoice" or "out_receipt", the domain would be "[('example0','=',1)]".
If not one of those types, the domain would be "[('example1','=',1)]".
How do I do this?