fix(plating): stop charge/tax pickers collapsing in order summary

The right-aligned value column squeezed the Additional Charge and Tax
dropdowns to a sliver. Move each picker into the (wider) label column,
stacked under its label at full width, so every value cell is now a
single amount that lines up cleanly in the right column under the
vertical divider.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-05-29 23:01:14 -04:00
parent 0d4a871d0c
commit 5675784916
3 changed files with 28 additions and 17 deletions

View File

@@ -5,7 +5,7 @@
{
'name': 'Fusion Plating — Configurator',
'version': '19.0.23.3.0',
'version': '19.0.23.4.0',
'category': 'Manufacturing/Plating',
'summary': 'Quotation configurator with part catalog, coating configs, and formula-based pricing engine.',
'description': """

View File

@@ -537,20 +537,31 @@
color: $xpr-text;
border-bottom: 1px solid $xpr-border-table; // horizontal divider per row
// col 1 — label, carrying the vertical column divider on its right edge
// col 1 — label (+ optional inline picker), carrying the
// vertical column divider on its right edge
.o_fp_xpr_total_label {
display: flex;
align-items: center;
flex-direction: column;
justify-content: flex-start;
gap: 5px;
padding: 8px 14px;
border-right: 1px solid $xpr-border-table;
color: $xpr-text-muted;
font-weight: 500;
// charge-type / tax pickers sit under the label text and
// fill the column width so the dropdown never collapses
.o_field_widget {
width: 100%;
font-weight: 400;
}
}
// col 2 — value, right-aligned so amounts line up in a column
// col 2 — value amount, top-aligned with the label text and
// right-aligned so every amount lines up in one column
> :not(.o_fp_xpr_total_label) {
display: flex;
align-items: center;
align-items: flex-start;
justify-content: flex-end;
gap: 8px;
padding: 8px 14px;

View File

@@ -355,28 +355,28 @@
readonly="1" nolabel="1"/>
</div>
<div class="o_fp_xpr_total_row">
<span class="o_fp_xpr_total_label">Additional Charge</span>
<div class="d-flex align-items-center gap-2">
<div class="o_fp_xpr_total_label">
<span>Additional Charge</span>
<field name="charge_type_id" nolabel="1"
placeholder="Type..."
options="{'no_open': True}"/>
<field name="charge_amount"
widget="monetary"
options="{'currency_field': 'currency_id'}"
nolabel="1"/>
</div>
<field name="charge_amount"
widget="monetary"
options="{'currency_field': 'currency_id'}"
nolabel="1"/>
</div>
<div class="o_fp_xpr_total_row">
<span class="o_fp_xpr_total_label">Tax</span>
<div class="d-flex align-items-center gap-2">
<div class="o_fp_xpr_total_label">
<span>Tax</span>
<field name="tax_id" nolabel="1"
placeholder="Tax type..."
options="{'no_create': True}"/>
<field name="total_tax"
widget="monetary"
options="{'currency_field': 'currency_id'}"
readonly="1" nolabel="1"/>
</div>
<field name="total_tax"
widget="monetary"
options="{'currency_field': 'currency_id'}"
readonly="1" nolabel="1"/>
</div>
<div class="o_fp_xpr_total_row">
<span class="o_fp_xpr_total_label">Total Lines</span>