Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
4992 Weergaven

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.


Avatar
Annuleer
Auteur Beste antwoord

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.

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
sep. 21
3468
1
mrt. 19
8116
2
apr. 17
3726
0
nov. 20
1786
0
mei 20
1922