Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

<> Code view not available in Odoo HTML GUI editor? Where is it?

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
codeemailhtmlwysiwygeditor
5 Respuestas
17074 Vistas
Avatar
Hibou Ambigu

Am I going crazy or is the <> code view button missing from the WYSIWYG code editor in Odoo 13.0 Community? I see it in some video tutorials others have made, but it's not present in my editor...

I'm trying to edit the template for an email - very basic stuff, except I cannot access the raw HTML since there's no <> button apparent in the editor on my screen to view the HTML underneath for the template. I've seen this button in many people's videos about the subject, and used it before in other applications.

If anyone knows where the button went to view HTML when editing an email template from the GUI, please help! Is there a stock Odoo app that lets you peek at that stuff? 

Anytime I edit something, it screws up the Jinja template underneath for the email template, but, I cannot fix the underlying HTML without digging into the actual server files.

1
Avatar
Descartar
Avatar
Pablo Escobar
Mejor respuesta

If you want to use HTML editor on any particular field, use an HTML widget.


Example:

In XML,

<field name="html_field" widget="html"/>


1
Avatar
Descartar
Avatar
Hibou Ambigu
Autor Mejor respuesta

Pablo, thanks for the reply. 

I have 

<field name="body_html" widget="html" options="{'style-inline': true}"/> 

for the email template editing View (when I inspect in development mode and go to edit form: view), however, there is still no option on the WYSIWYG inline toolbar to display source/code in the editor.

I've found out that I can force it to display raw text in there by changing to widget="text" but that's not an ideal solution since I have to open the XML and manually switch back and forth.

Is there something else I'm missing that can get the source code view option back on the toolbar of the editing widget?


2
Avatar
Descartar
Michael Sommer

I have the same issue - while changing the widget type to "text" in the view mail.template is a workaround - i hope someone will provide a solution to get the '<>' Button to switch between 'source' and 'wysiwyg' mode...

Avatar
Viktor Iliev Tsvetkov
Mejor respuesta

I have tried this in Odoo 14, so I'm not sure whether it will work in version 13, but you can insert the html of the code view button somewhere in the toolbar and the button will be working as expected: <button type="button" class="btn btn-secondary btn-sm" title="" data-event="codeview" tabindex="-1" data-name="codeview" data-original-title="Code View"><i class="fa fa-code"></i></button>

An easier solution is to directly edit the page html, modify the mail body and Odoo will accept the change.

0
Avatar
Descartar
Avatar
Adrian Tuhut
Mejor respuesta

Try with debug mode activated. You will then see Codeview

0
Avatar
Descartar
Avatar
Roberto Palacios git GmbH
Mejor respuesta

The options="{'style-inline':'true'}" is the solution to the question!! Just adding the widget is not enough.

The Ckeditor configuration option style-inline has to be set to true... Until today i was used to configure ckeditor settings via an ckeditor.js file, but in the odoo context i am not able to identifiy how to overwrite an existing config file or add an own file via a custom addon.. If anyone knows how to implement an own ckeditor.js config file, please let us know =)

0
Avatar
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
Display code view / edit raw-HTML in Odoo 17 Resuelto
code html raw editor v17
Avatar
Avatar
2
mar 24
12239
How to use text fields with HTML-Formatting Resuelto
html editor
Avatar
Avatar
1
jul 25
54973
Enterprise HTML Error V10
html editor
Avatar
0
dic 17
4466
HTML A tags being sanitized unusable in html editor
html editor
Avatar
Avatar
1
jun 15
7405
wysiwyg editor on the wizard
wysiwyg editor
Avatar
0
mar 15
5697
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now