Hello,
I have a field called "my_item" in my purchase.order
I want to put a new field in with a domain filter to filter only the records with the id that the "my_item" has.
the other field is a many2many, it can have max 3. = "my_list_ids"
<!-- Filter for my item-->
<record id="purchase_order_filter" model="ir.ui.view">
<field name="name">purchase.order.filter</field>
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_form"/>
<field name="arch" type="xml">
<field name="field1" position="replace">
<field name="field1" domain="[('my_item.id', 'in', 'my_list_id.new_item_ids')]"/>
</field>
</field>
</record>
How can I do that?
Thank you