Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
971 Tampilan

Our company uses estimates, not quotations for legal reasons (we are a service-based business). I have been able to change the display on our PDF forms to read "Estimate" rather than 'Quotation", but we still need to change this on the customer portal view. Could someone help explain how to do this? I will attach a file showing each place I need the Customer view highlighted in red to say "Estimate" instead of "Quotation".


Thank you


Avatar
Buang
Jawaban Terbai

Hi,

Try the below template to change the title in customer portal view.

<template id="sale_order_portal_content_inherit" inherit_id="your_module_name.sale_order_portal_content">
           <xpath expr="//h2/t" position="replace">
                <t t-if="sale_order.type_name == 'Quotation'">
Estimate - <em t-out="sale_order.name"/>
                  </t>
                  <t t-else="">
                        <t t-out="sale_order.type_name"/> -
                   </t>
<em t-out="sale_order.name"/>
              </xpath>
</template>


Hope it helps

Avatar
Buang
Penulis Jawaban Terbai

Thank you, 

I managed to make it work with your advice.

I still need to change the breadcrumb at the top left of the page. Any advice on how to do so?

Avatar
Buang