feat(configurator): C4 — push coating + treatments back to part catalog defaults
Adds x_fc_default_coating_config_id and x_fc_default_treatment_ids fields on fp.part.catalog. Wizard line gets a push_to_defaults toggle. After action_create_order confirms the SO, any line with push_to_defaults=True writes its coating + treatments back onto the part catalog entry as the new defaults. Reverse direction too: onchange on part_catalog_id in the wizard line seeds coating + treatments from the part's defaults (if set and the line doesn't already have them). Part catalog form gets a new "Defaults" tab showing the stored defaults. Smoke-tested: pushing default on order 1 populates the catalog entry; new wizard line for that part auto-seeds the coating. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -224,6 +224,20 @@
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
<page string="Defaults" name="direct_order_defaults">
|
||||
<group>
|
||||
<field name="x_fc_default_coating_config_id"
|
||||
options="{'no_create_edit': True}"/>
|
||||
<field name="x_fc_default_treatment_ids"
|
||||
widget="many2many_tags"
|
||||
options="{'no_create_edit': True}"/>
|
||||
</group>
|
||||
<p class="text-muted">
|
||||
Seeds the treatment fields on new direct-order
|
||||
lines. Updated whenever "Save as Default" is
|
||||
ticked while placing an order.
|
||||
</p>
|
||||
</page>
|
||||
<page string="Notes" name="notes">
|
||||
<field name="notes" placeholder="Additional notes about this part..."/>
|
||||
</page>
|
||||
|
||||
Reference in New Issue
Block a user