From b85642816f1ae66a87e167e04d441e49ff7ccb8f Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Fri, 17 Apr 2026 18:43:58 -0400 Subject: [PATCH] feat(configurator): menu reorder, currency/unit display polish, line description templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three UX improvements: 1. Sales menu reordered — New Quote (seq 1) is now the first entry, followed by New Direct Order (5), Quotations (10), Sale Orders (20). "New Quote" moved out of Configurator submenu into Sales so both quote-creation paths live side-by-side. 2. Currency + unit display audit: - fp.customer.price.list.unit_price flipped from Float to Monetary with currency_field='currency_id' — list view now shows $ symbol and a Total sum row - fp.direct.order.wizard.unit_price flipped to Monetary, added currency_id field and computed line_subtotal ($) - % suffix appended to deposit_percent and progress_initial_percent in the wizard - Unit suffixes added where missing: bake_window.quantity (pcs), window_hours (h), bake_temp (°F), bake_duration_hours (h); bath.volume (L), bath.mto_count (turnovers); tank.volume shows volume_uom inline 3. Saved line descriptions (new feature): - New model fp.sale.description.template with name, description, tag (standard/masking/rework/aerospace/nuclear/packaging/other), optional coating_config_id and partner_id, usage_count bumped on each use - List + form + search views; new "Line Descriptions" menu under Configurator - 8 starter templates seeded (noupdate=1): ENP Standard/Aerospace/ Nuclear, masking variants, rework, packaging, delicate handling - Direct Order Wizard gets a template picker (searchable Many2one) + editable paragraph; picking a template copies text to the editable field, user tweaks freely, tweaked text lands on the SO line as "
\n\n" - Auto-suggests template on coating+partner match if nothing picked yet Smoke-tested end-to-end: picked aerospace template, tweaked text, confirmed wizard → SO S00030 has full description on line, usage counter bumped from 0 to 1. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../fusion_plating/views/fp_bath_views.xml | 12 +- .../fusion_plating/views/fp_tank_views.xml | 7 +- .../__manifest__.py | 6 +- .../fp_sale_description_template_data.xml | 69 +++++++++++ .../models/__init__.py | 1 + .../models/fp_customer_price_list.py | 5 +- .../models/fp_sale_description_template.py | 62 ++++++++++ .../security/ir.model.access.csv | 3 + .../views/fp_configurator_menu.xml | 25 ++-- .../views/fp_customer_price_list_views.xml | 10 +- .../fp_sale_description_template_views.xml | 107 ++++++++++++++++++ .../wizard/fp_direct_order_wizard.py | 72 +++++++++++- .../wizard/fp_direct_order_wizard_views.xml | 41 +++++-- .../views/fp_bake_window_views.xml | 24 +++- 14 files changed, 406 insertions(+), 38 deletions(-) create mode 100644 fusion_plating/fusion_plating_configurator/data/fp_sale_description_template_data.xml create mode 100644 fusion_plating/fusion_plating_configurator/models/fp_sale_description_template.py create mode 100644 fusion_plating/fusion_plating_configurator/views/fp_sale_description_template_views.xml diff --git a/fusion_plating/fusion_plating/views/fp_bath_views.xml b/fusion_plating/fusion_plating/views/fp_bath_views.xml index 3f972344..550254a1 100644 --- a/fusion_plating/fusion_plating/views/fp_bath_views.xml +++ b/fusion_plating/fusion_plating/views/fp_bath_views.xml @@ -67,12 +67,20 @@ - +