Hello community,
I'm trying to give a specific record to my new view that I call from an action.
I know how I can give the active_id and use that in the new model field as a default value.
I have a field as a Many2one of product.product. I want to give it a context from the 'product.template' view, but active_id should not be the 'product.template' ID, it should be the 'product.product' ID from that Base Product.
Something like this:
<field name="context">{'search_default_product_id': product_variant_id.id, 'default_product_id': product_variant_id.id}</field>
Thanks,