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:
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Fusion Plating — Configurator',
|
'name': 'Fusion Plating — Configurator',
|
||||||
'version': '19.0.23.3.0',
|
'version': '19.0.23.4.0',
|
||||||
'category': 'Manufacturing/Plating',
|
'category': 'Manufacturing/Plating',
|
||||||
'summary': 'Quotation configurator with part catalog, coating configs, and formula-based pricing engine.',
|
'summary': 'Quotation configurator with part catalog, coating configs, and formula-based pricing engine.',
|
||||||
'description': """
|
'description': """
|
||||||
|
|||||||
@@ -537,20 +537,31 @@
|
|||||||
color: $xpr-text;
|
color: $xpr-text;
|
||||||
border-bottom: 1px solid $xpr-border-table; // horizontal divider per row
|
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 {
|
.o_fp_xpr_total_label {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
flex-direction: column;
|
||||||
|
justify-content: flex-start;
|
||||||
|
gap: 5px;
|
||||||
padding: 8px 14px;
|
padding: 8px 14px;
|
||||||
border-right: 1px solid $xpr-border-table;
|
border-right: 1px solid $xpr-border-table;
|
||||||
color: $xpr-text-muted;
|
color: $xpr-text-muted;
|
||||||
font-weight: 500;
|
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) {
|
> :not(.o_fp_xpr_total_label) {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: flex-start;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
padding: 8px 14px;
|
padding: 8px 14px;
|
||||||
|
|||||||
@@ -355,28 +355,28 @@
|
|||||||
readonly="1" nolabel="1"/>
|
readonly="1" nolabel="1"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="o_fp_xpr_total_row">
|
<div class="o_fp_xpr_total_row">
|
||||||
<span class="o_fp_xpr_total_label">Additional Charge</span>
|
<div class="o_fp_xpr_total_label">
|
||||||
<div class="d-flex align-items-center gap-2">
|
<span>Additional Charge</span>
|
||||||
<field name="charge_type_id" nolabel="1"
|
<field name="charge_type_id" nolabel="1"
|
||||||
placeholder="Type..."
|
placeholder="Type..."
|
||||||
options="{'no_open': True}"/>
|
options="{'no_open': True}"/>
|
||||||
<field name="charge_amount"
|
|
||||||
widget="monetary"
|
|
||||||
options="{'currency_field': 'currency_id'}"
|
|
||||||
nolabel="1"/>
|
|
||||||
</div>
|
</div>
|
||||||
|
<field name="charge_amount"
|
||||||
|
widget="monetary"
|
||||||
|
options="{'currency_field': 'currency_id'}"
|
||||||
|
nolabel="1"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="o_fp_xpr_total_row">
|
<div class="o_fp_xpr_total_row">
|
||||||
<span class="o_fp_xpr_total_label">Tax</span>
|
<div class="o_fp_xpr_total_label">
|
||||||
<div class="d-flex align-items-center gap-2">
|
<span>Tax</span>
|
||||||
<field name="tax_id" nolabel="1"
|
<field name="tax_id" nolabel="1"
|
||||||
placeholder="Tax type..."
|
placeholder="Tax type..."
|
||||||
options="{'no_create': True}"/>
|
options="{'no_create': True}"/>
|
||||||
<field name="total_tax"
|
|
||||||
widget="monetary"
|
|
||||||
options="{'currency_field': 'currency_id'}"
|
|
||||||
readonly="1" nolabel="1"/>
|
|
||||||
</div>
|
</div>
|
||||||
|
<field name="total_tax"
|
||||||
|
widget="monetary"
|
||||||
|
options="{'currency_field': 'currency_id'}"
|
||||||
|
readonly="1" nolabel="1"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="o_fp_xpr_total_row">
|
<div class="o_fp_xpr_total_row">
|
||||||
<span class="o_fp_xpr_total_label">Total Lines</span>
|
<span class="o_fp_xpr_total_label">Total Lines</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user