Specifically, I try to understand how 'Configure Variant' in product template view works. In product_views.xml in product module it got:
<button string="Configure Variants" type="action"
name="%(product_attribute_value_action)d"
attrs="{'invisible': ['|', ('attribute_line_ids', '<=', 0), ('is_product_variant', '=', True)]}"
groups="product.group_product_variant"/>
How does Odoo recognize product_attribute_value_action to deliver correct ir.act_window action? I try to find product_attribute_value_action declaration anywhere but cant find it.
Using the name of your button ("
product_attribute_value_action"), you can define your action this way, so that it will open the existing product-attributes's view:product_attribute_view_formALREADY EXISTING VIEW FORM (in /addons/product/view/product_attributes_views.xml):