Skip to Content
Menu
This question has been flagged

Hi,

I'm trying to change the text from the 'Sign and Pay' button that the customer can click when we send them our quotation.

I read somewhere the forum that you could do this easly in previous versions by changing the text on 'Quotation: Sign and Pay mail notification template' through Settings > Technical > User Interface > Views, but apparently it's not there anymore.

Does anyone know how can I change this in Odoo 16 Enterprise?

Thanks in advance,

- Javier.

Avatar
Discard
Author

Hi Cybrosis,
We saw that post, that's why we tried to achieve the same result but to no avail.

It seems that option isn't there anymore.

Best Answer

Hello,
In Odoo 16 button title in Sale emails are updated from python file,
You can change text in _notify_get_recipients_groups method of sale/models/sale_order.py
https://github.com/odoo/odoo/blob/16.0/addons/sale/models/sale_order.py#L1225

Avatar
Discard
Best Answer

@Javier Did you find a working solution yet?

I also want to change the text on the button in the e-mail from "Sign & Pay Quotation" to "View Quotation".

I don't want to make the change in the translation .po files because the translation might end up somewhere where I still need it to display "Sign & Pay Quotation". So I think best practice is to replace it somewhere in a view file with "View Quotation" since "View Quotation" is already available as a 'source text' in the .po files.

But I'm having trouble finding the exact view file for the button that is added to the top of the 'Sales: Send Quotation'-email template.

Avatar
Discard
Author

Sadly, no. It seems it won't work that way in the current version. We haven't figured out how to change it at all, so we just disabled the Sign & Pay option for now.

@Javier
I have unchecked the following settings but still get “Accept & Sign Quotation” on the button:
- Sales > Quotations & Orders > Online Signature: unchecked
- Sales > Quotations & Orders > Online Payment: unchecked
- Accounting > Customer Payments > Invoice Online Payment: unchecked

Is there any other setting I should disable?

Best Answer

Believe it is now in the view - sale order portal template (sale.sale_order_portal_template)

You might be able to achieve the same with translations as well


Avatar
Discard
Author

Hi Jaideep!
Thanks for your comment. However, I can't find this setting anywhere.
Do I need to have any specific module installed to access code translations?

Thanks again!

It is in Settings > Translations.. to view this menu you would need to enable developer mode.
Believe in V16, you would need to export and then import the file, slightly different to prior versions. I haven't personally executed in V16 yet. The below posts and documentation might help
https://www.odoo.com/documentation/16.0/developer/howtos/translations.html
https://www.odoo.com/forum/help-1/how-to-translate-a-specific-view-in-odoo-16-216560
https://www.odoo.com/forum/help-1/where-is-the-translated-terms-menu-in-odoo-16-211982

Related Posts Replies Views Activity
1
Mar 23
2354
1
Feb 24
1770
1
Jul 23
2579
0
Mar 23
1116
3
Dec 23
18405