Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
34844 Lượt xem

Hi,

I'm looking for a way to change the default mail template associated to a Quotation in the module Purchases.

Once the quotation is ready to be sent, I click on "Send by Email". Here I'd like to have a custom model selected by default in the dropdown box on the bottom right of the window.

Moreover I have an encoding error of my variable ${object.company_id.name}.

For example if the company is named "l'EPI de Garange", the "'" will be showed like this in the mail : & # 3 9 ; (without the spaces, but otherwise it's interpreted by the parser)

Do you have any idea of the way I could solve this side question as well ?

Cheers

Victor

Ảnh đại diện
Huỷ bỏ

https://www.odoo.com/forum/help-1/question/cant-set-default-email-template-in-sales-order-not-even-as-a-default-parameter-61064

Câu trả lời hay nhất

Here is our new solution. We are very proud of it.

https://www.odoo.com/forum/help-1/question/cant-set-default-email-template-in-sales-order-not-even-as-a-default-parameter-61064

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

To change email templates used by default when you click on Sending buttons, go to Settings > Technical > Sequences & Identifiers > External Identifiers, search for records tied to the *mail.template* object and select the one referencing the email sending. Once in this form, replace the ID by the one of your customized template. To know the ID of your new template, open its form and have a look at the URL. The ID is given by"id=...".

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi, 

I think it's quite complticated to chage this simple parameter,

Fréderic, thanks for your help, I've found the ID of my template, but I cant' find the form to replace the ID, 

 

 

Ảnh đại diện
Huỷ bỏ

Idem for me.

Sorry I meant *mail.template* model and not *mail.message*... That's why you did not find anything.

Bài viết liên quan Trả lời Lượt xem Hoạt động
6
thg 11 24
2659
1
thg 4 15
4831
0
thg 4 25
2619
0
thg 12 24
1581
0
thg 7 24
1839