تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
1006 أدوات العرض

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


الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

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?

الصورة الرمزية
إهمال