fix(configurator): widen direct-order wizard modal so line columns breathe

User complaint: the direct-order wizard's line table was crammed —
"Primary Treatment" showed as "Primary T..." and "Serial Number"
as "Serial Nu..." at the default Odoo modal width (~992px).

Added a dedicated stylesheet that targets the wizard via a new
o_fp_direct_order_wizard class on the form element. The modal
dialog containing the wizard now opens at min(1600px, 95vw) —
wide enough for the 10+ columns (Part, Primary Treatment, Process,
Thickness, Serial Number, Qty, Unit Price, Subtotal, Part Deadline,
WO Group) to fit without truncation on typical desktop displays,
while still adapting to narrower screens.

Also nudged per-cell horizontal padding from Bootstrap's default
to 10px left/right so the columns have a bit more breathing room
inside the wider table.

fusion_plating_configurator → 19.0.13.4.0

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-04-23 09:56:33 -04:00
parent 488b0655a7
commit 470c44ee5d
3 changed files with 29 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
{
'name': 'Fusion Plating — Configurator',
'version': '19.0.13.3.0',
'version': '19.0.13.4.0',
'category': 'Manufacturing/Plating',
'summary': 'Quotation configurator with part catalog, coating configs, and formula-based pricing engine.',
'description': """
@@ -70,6 +70,8 @@ Provides:
'fusion_plating_configurator/static/src/scss/fp_part_process_composer.scss',
'fusion_plating_configurator/static/src/xml/fp_part_process_composer.xml',
'fusion_plating_configurator/static/src/js/fp_part_process_composer.js',
# Direct-order wizard — widen the modal so 10+ line columns fit
'fusion_plating_configurator/static/src/scss/fp_direct_order_wizard.scss',
],
},
'installable': True,

View File

@@ -0,0 +1,25 @@
// Copyright 2026 Nexa Systems Inc.
// License OPL-1 (Odoo Proprietary License v1.0)
// Part of the Fusion Plating product family.
//
// Widen the direct-order wizard modal so the line-items table has
// enough room to render all columns (Part, Primary Treatment,
// Process, Thickness, Serial Number, Qty, Unit Price, Subtotal,
// Part Deadline, WO Group) without truncating headers. The default
// Odoo modal dialog caps at ~992px on desktop which squeezes the
// 10+ columns into ellipsis.
.modal-dialog:has(.o_fp_direct_order_wizard) {
max-width: min(1600px, 95vw);
width: min(1600px, 95vw);
}
.o_fp_direct_order_wizard {
// Give each line-item cell a bit more horizontal breathing room
// so "Primary Treatment" and "Serial Number" stop truncating.
.o_list_table > thead > tr > th,
.o_list_table > tbody > tr > td {
padding-left: 10px;
padding-right: 10px;
}
}

View File

@@ -5,7 +5,7 @@
<field name="name">fp.direct.order.wizard.form</field>
<field name="model">fp.direct.order.wizard</field>
<field name="arch" type="xml">
<form string="Direct Order Entry">
<form string="Direct Order Entry" class="o_fp_direct_order_wizard">
<div class="alert alert-info py-2 mb-0 small"
role="alert">
<i class="fa fa-info-circle me-1"/>