I need applay domain on field product\_id in purchase.order.line model, after call onchange method in purchase.order model.

Example:

```
_inherit = "purchase.order"

custom_id = fields.Many2one('custom.model', string='Custom') 

@api.onchange('custom_id')
def change_product(self):
    lst = [1,2,3]
    return {'domain': {'order_id.product_id': [('id', 'in', lst)]}}

```

This is original field where I want add my domain

```
product_id = fields.Many2one('product.product', string='Product',domain=[('purchase_ok', '=', True)], change_default=True, required=True)

```

I don't get any error but in product\_id field show all data from database, not product where id 1,2,3 from above example.