Skip to content

Commit 38505d0

Browse files
committed
[FIX] l10n_fr_invoice_addr: fix document styling and improve consistency
Steps to reproduce: - Install `l10n_fr_invoice_addr` - Switch to french company - Change "Colors" in "Document Layout" settings - Go to an invoice and click the "Preview" button Because of the inconsistent HTML tags used, the invoice styling wouldn't get applied to the columns added by `l10n_fr_invoice_addr`. This commit improves consistency with the pre-existing HTML hence fixing that issue See: odoo#172497 task-4056046 closes odoo#174209 X-original-commit: d2c6429 Signed-off-by: William André (wan) <[email protected]> Signed-off-by: Solal Vignal (sovi) <[email protected]>
1 parent 03b06b1 commit 38505d0

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

addons/l10n_fr_account/views/report_invoice.xml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
<xpath expr="//div[@id='informations']" position="inside">
1515
<t t-if="o.l10n_fr_is_company_french and o.partner_id.commercial_partner_id != o.partner_id and o.move_type.startswith('out_')">
1616
<t t-set="partner" t-value="o.partner_id.commercial_partner_id"/>
17-
<div class="col-auto col-3 mw-100 mb-2">
18-
<div class="fw-bold">Customer Address:</div>
17+
<div class="col mb-2" name="customer_address">
18+
<strong>Customer Address:</strong>
19+
<br/>
1920
<address t-field="partner.self" class="m-0" t-options="{'widget': 'contact', 'fields': ['address'], 'no_marker': True}"/>
2021
</div>
2122
</t>
@@ -27,20 +28,19 @@
2728
<t t-set="has_service" t-value="'service' in tax_scopes"/>
2829
<t t-set="has_consu" t-value="'consu' in tax_scopes"/>
2930

30-
<t t-if="has_service or has_consu">
31-
<div class="col-auto col-3 mw-100 mb-2">
32-
<div class="fw-bold">Operation Type:</div>
33-
<t t-if="has_service and has_consu">
34-
Mixed Operation
35-
</t>
36-
<t t-elif="has_service and not has_consu">
37-
Service Delivery
38-
</t>
39-
<t t-else="">
40-
Goods Delivery
41-
</t>
42-
</div>
43-
</t>
31+
<div t-if="has_service or has_consu" class="col mb-2" name="operation_type">
32+
<strong>Operation Type:</strong>
33+
<br/>
34+
<span t-if="has_service and has_consu">
35+
Mixed Operation
36+
</span>
37+
<span t-elif="has_service and not has_consu">
38+
Service Delivery
39+
</span>
40+
<span t-else="">
41+
Goods Delivery
42+
</span>
43+
</div>
4444
</t>
4545
</xpath>
4646

0 commit comments

Comments
 (0)