Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5179 มุมมอง

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.


อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ย. 21
3906
Error in odoo12 community แก้ไขแล้ว
1
มี.ค. 19
8528
2
เม.ย. 17
3972
0
พ.ย. 20
2054
0
พ.ค. 20
2359