I want to give domain on one2many field in xml and in domain I want to use field of one2many object.
For example:
In Purchase Order Line of Purchase Order form view, I want to show those records whose product_qty is 2. "product_qty" is a field of purchase.order.line
This is my Purchase Order Line
<field name='order_line' domain="[('product_qty', '=', 2)]"
But its not working. I don't want to give domain in py file when field is define.
Can anyone know how to achieve this?
Thanks in advance