feat(configurator): SO-line template picker + dual descriptions + onchange (Sub 2 Task 15)
Surfaces the per-part description template on the SO line list alongside a hidden-by-default internal description column. Picking a template fires an onchange that copies `customer_facing_description` into Odoo's standard `name` (customer-visible) and `internal_description` into x_fc_internal_description (shop-floor / WO only). Estimator can edit either field after the template is applied. The template picker's domain filters by the line's part, and the field stays hidden until a part is chosen — avoids showing every global template when the line is blank. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -179,6 +179,14 @@
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='order_line']/list/field[@name='product_uom_qty']" position="before">
|
||||
<field name="x_fc_part_catalog_id" optional="show"/>
|
||||
<field name="x_fc_description_template_id"
|
||||
domain="[('part_catalog_id', '=', x_fc_part_catalog_id)]"
|
||||
options="{'no_create': True}"
|
||||
invisible="not x_fc_part_catalog_id"
|
||||
optional="show"/>
|
||||
<field name="x_fc_internal_description"
|
||||
placeholder="Shop-floor workflow instructions (prints on WO / traveler)"
|
||||
optional="hide"/>
|
||||
<field name="x_fc_coating_config_id" optional="show"/>
|
||||
<field name="x_fc_treatment_ids" widget="many2many_tags" optional="hide"/>
|
||||
<field name="x_fc_part_deadline" optional="hide"/>
|
||||
|
||||
Reference in New Issue
Block a user