Skip to Content
मेन्यू
This question has been flagged

On Odoo 16 Ent, when printing out a quotation, how to I show the lead time per product, directly under each product name/description?  I think I need to add the field "commitment date" but I'm not sure how to position it correctly on the inherited view?

Avatar
Discard
Best Answer

Hi,

Try like below

<template id="leadtime_report_saleorder_document_inherit" inherit_id="sale.report_saleorder_document">
    <xpath expr="//span[@t-field='line.name']" position="after">
        <t t-if="line.order_id.commitment_date"><h6><strong class="ml16">Commitment Date:</strong> <span t-field="line.order_id.commitment_date"/></h6></t>
    </xpath>
</template>


Regards

Avatar
Discard
Author

Thank you, this works well, however, how to hide the time, and only show the date please?

Best Answer

Karen you can use the widget option like this
<span t-field="line.order_id.commitment_date" t-options="{'widget': 'date'}"/>

Avatar
Discard
Author

perfect thank you

Related Posts Replies Views Activity
2
मई 20
3047
1
अप्रैल 24
2048
0
जन॰ 25
1941
1
अप्रैल 24
2224
0
फ़र॰ 24
1091