@Team Odoo.
Please review the default layout for the quote templates.
The spacing is terrible between the Invoice and the Shipping Address. Plus, there should be some title for the left-hand address.
To the community, what do you all do?
@Team Odoo.
Please review the default layout for the quote templates.
The spacing is terrible between the Invoice and the Shipping Address. Plus, there should be some title for the left-hand address.
To the community, what do you all do?
Hi,
To improve the layout of the quote PDF and clearly label the invoice and shipping addresses, I replaced the original address block using XPath. This version shows both addresses side by side with proper titles and spacing.
XML Override:
<odoo>
<template id="report_saleorder_document_custom" inherit_id="sale.report_saleorder_document">
<xpath expr="//t[@t-set='information_block']" position="replace">
<div class="row mb-3" name="quote_addresses">
<div class="col-6">
<strong>Invoice Address</strong>
<div t-field="doc.partner_invoice_id"
t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/>
</div>
<div class="col-6">
<strong>Shipping Address</strong>
<div t-field="doc.partner_shipping_id"
t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/>
</div>
</div>
</xpath>
</template>
</odoo>
This makes the PDF cleaner and avoids confusion when both addresses are shown.
Hope it helps.
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
2
يوليو 25
|
3218 | |||
|
1
يونيو 24
|
4817 | |||
|
12
أبريل 26
|
38002 | |||
|
0
يناير 25
|
2789 | |||
|
0
أكتوبر 24
|
4451 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.