in Sale Order, there Order Lines, I already create custom attribute and value to related into partner_id. When I add for Product and Product Variant, I see it can "Edit Configuration" and popup the wizard "Configure your product". I don't know if this wizard has model/form/tree? Since I already search it. And this is only what I found, sale_product_configurator modul:
odoo>
record id="sale_order_view_form" model="ir.ui.view">
field name="name">sale.order.form.inherit.sale.product.configurator
field name="model">sale.orderfield name="inherit_id" ref="sale.view_order_form"/>
field name="arch" type="xml">
xpath expr="//tree/field[@name='product_template_id']" position="attributes">
attribute name="column_invisible">0/xpath>
xpath expr="//tree/field[@name='product_template_id']" position="after">
field name="product_template_attribute_value_ids" column_invisible="1" />
field name="product_custom_attribute_value_ids" column_invisible="1" >
tree>
field name="custom_product_template_attribute_value_id" />
field name="custom_value" />
/tree>
/field>
field name="product_no_variant_attribute_value_ids" column_invisible="1" />
field name="is_configurable_product" column_invisible="1" />
/xpath>
xpath expr="//tree/field[@name='product_id']" position="attributes">
attribute name="optional">hideattribute name="string">Product Variant
/xpath>
/field>
/record>
/odoo>
and for the model:
class SaleOrderLine(models.Model):
_inherit = 'sale.order.line'
is_configurable_product = fields.Boolean(
string="Is the product configurable?",
related='product_template_id.has_configurable_attributes',
depends=['product_id'])
product_template_attribute_value_ids = fields.Many2many(
related='product_id.product_template_attribute_value_ids',
depends=['product_id'])