I want to move the red section to under the "Quotation" heading to the right of the customer details.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I want to move the red section to under the "Quotation" heading to the right of the customer details.
Hii,
Here is version 16 code please try this
Example XML to move it
<odoo>
<template id="report_saleorder_document_inherit_move_red_section"
inherit_id="sale.report_saleorder_document">
<!-- Remove the original red section -->
<xpath expr="//div[@class='row mt32 mb32']//div[@class='col-auto']" position="replace">
<!-- leave blank to remove -->
</xpath>
<!-- Insert the red section next to customer details -->
<xpath expr="//div[@class='row mt32 mb32']//div[@class='col-auto']//.." position="after">
<div class="row mt32 mb32">
<div class="col-6">
<!-- Keep customer details here -->
<div>
<strong t-esc="doc.partner_id.name"/>
<br/>
<span t-esc="doc.partner_id.contact_address"/>
</div>
</div>
<div class="col-6 text-right" style="color:red;">
<p><strong>Quotation #:</strong> <span t-esc="doc.name"/></p>
<p><strong>Date:</strong> <span t-esc="doc.date_order.strftime('%d/%m/%Y')"/></p>
<p><strong>Salesperson:</strong> <span t-esc="doc.user_id.name"/></p>
</div>
</div>
</xpath>
</template>
</odoo>
i hope it is use full
Hi,
To move the "Question Date", "Expiration", and "Salesperson" section to the right of the "Quotation # 00004" heading in an Odoo report (likely a QWeb report), you'll need to modify the report's XML template.
- Locate the QWeb Report Template(sale.report_saleorder_document)
- Inherit the template and make changes in the inherited template.
Add your div or group by using XPath.
<xpath expr="//div[@name='informations_reference']" position="after">
<!-- Your custom div here -->
</xpath>
Ensure to upgrade the module.
Hope it helps
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
3
Agu 25
|
421 | ||
|
3
Agu 25
|
1669 | ||
|
1
Jul 25
|
686 | ||
|
0
Agu 25
|
549 | ||
|
1
Jun 25
|
1017 |