[FIX] sale_stock: remove redundant css class for correct pdf rendering
Reproduction: 1. Install Sales, Stock 2. Place an order with any product, in the Other Info tab, type in anything for Customer Reference 3. Confirm the Order, Go to Delivery, Validate the delivery 4. Print the Delivery Slip, and the customer reference part is overlapping with other text Reason: the unnecessary CSS attribute <row> is causing an overlapping when rendering the delivery template Fix: remove <row> and reformatting the code A correct example of adding extra info (done without row): https://github.com/odoo-dev/odoo/blob/16.0/addons/delivery/views/report_deliveryslip.xml#L4-L17 closes odoo/odoo#107726 X-original-commit: 863a9cf159da9691744f08a915e12f477342dbc3 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com> Signed-off-by: Liu Jinjiu (jili) <jili@odoo.com>
This commit is contained in:
@@ -2,11 +2,9 @@
|
||||
<odoo>
|
||||
<template id="report_delivery_document_inherit_sale_stock" inherit_id="stock.report_delivery_document">
|
||||
<xpath expr="//div[@name='div_sched_date']" position="after">
|
||||
<div class="row justify-content-end" t-if="o.sudo().sale_id.client_order_ref">
|
||||
<div class="col-auto">
|
||||
<strong>Customer Reference:</strong>
|
||||
<p t-field="o.sudo().sale_id.client_order_ref"/>
|
||||
</div>
|
||||
<div class="col-auto justify-content-end" t-if="o.sudo().sale_id.client_order_ref">
|
||||
<strong>Customer Reference:</strong>
|
||||
<p t-field="o.sudo().sale_id.client_order_ref"/>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user