xpath expr="//field[@name='product_id']" position="attributes"
attribute name="domain[('id', 'in', parent.product_id_domain)] /attribute
/xpath
I have skipped the please understand the code
how can add a condition to this domain as it has to execute only when parent.picking_type_code =='outgoing'