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

So by default in odoo you need to be in debug mode in order to see the <> View Code button on the mass mailing editor. This is very annoying if you have a team of marketers who need to access the html code for the mailshot. I couldnt find any easy solution to this other than creating custom summernote code to override the existing one. 


Instead if you want to enable the button if your not in debug mode without having to do a custom script for it (not recommended as if you upgrade odoo you will lose the changes) but if you want to continue follow these simple steps.


Navigate to your odoo installation folder.

Go into /addons/web_editor/static/srv/js/backend/fields.js


In this file you will see statements looking like:

if(config.debug){}

if(session.debug){}


All you need to do is remove the check from the statements then youll be able to see the codeview button regardless of if you are in debug mode.


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

Instead if you want to enable the button if your not in debug mode without having to do a custom script for it (not recommended as if you upgrade odoo you will lose the changes) but if you want to continue follow these simple steps.


Navigate to your odoo installation folder.

Go into /addons/web_editor/static/srv/js/backend/fields.js


In this file you will see statements looking like:

if(config.debug){}

if(session.debug){}


All you need to do is remove the check from the statements then youll be able to see the codeview button regardless of if you are in debug mode.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 9 21
3907
1
thg 3 19
8530
2
thg 4 17
3972
0
thg 11 20
2055
0
thg 5 20
2359