Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • eLearning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Información
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y asistencia informática
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Browse all Industries
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Services for Partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar 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
  • Proyecto
  • 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

How to 'customize' the website sustainably?

Suscribirse

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

Se marcó esta pregunta
customizeecommercewebsite
1 Responder
4428 Vistas
Avatar
Frank Adler

Hi,

I've found that my 'inline changes' in the Odoo website frontend persist during upgrages, but changes done through the 'customize' option get overwritten. This seems to be the case as the customize option actually changes the underlying view which gets (potentially) overwritten during an upgrade.

What is the correct way to change the content in the website front-end, in order for changes (be it 'in-line' or through 'customize') to remain in place during an upgrade?

Thanks

0
Avatar
Descartar
Avatar
Anders Wallenquist
Mejor respuesta

You have to create a module with your changes. You can use "Customize" as a RAD-editor and when your ready recreate your additions as xpath-templates in your module.

0
Avatar
Descartar
Frank Adler
Autor

Thanks Anders. Maybe I misunderstand, but wouldn't your reply mean that for instance to add a simple "id" or a "class" tag to an existing div or p tag (to modify its css, or to alternatively add an inline style tag) I need to reference that through xpath in an inherited view and use 'replace'? Surely there has to be a better way? Especially since the xpath would change as soon as I modify the website inline...?

Anders Wallenquist

If you create a "view"/template in a new module with: Here comes your HTML and t-commands. If you want to change a page: <xpath expr="//div[@name='my_postion']" position="after">

Your code comes here
You can also create snippets that you call with or what you called your snipped. A module makes it easier to recreate your site in another database and preserve what you done when you upgrade and reinstall generic modules.
Anders Wallenquist

Code does not look well in commens. Have a look at the website_crm-module instead (two inherits and one new page): https://github.com/odoo/odoo/blob/master/addons/website_crm/views/website_crm.xml

Anders Wallenquist

This is how we have done on sites we have created. Instead of xpath and replace you can overwrite the whole page and use the same id as the original page. I think there are a positon-parameter you can add to ensure that you are the last contributor. I donẗ know if its better to overwrite or change (xpath). We have had a lot of problems with xpath and t.call/inherits that does not find anything when upgrading thru saas[12345] and 8x. But its better to know where your code are and not burried in a nonfunctional database IMHO.

Anders Wallenquist

For us the bootstrap framework has forced us to relearn how to create a site. Today we have another approach than earlier and seldom create our own classes, just change them in a "theme".

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

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

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
Add to cart code if using odoo web.
ecommerce website
Avatar
0
abr 25
1595
Is it possible to have 3 websites on same odoo instance(Odoo Online)
ecommerce website
Avatar
Avatar
1
may 24
5039
pause Ecommerce store - vacation mode?
ecommerce website
Avatar
Avatar
1
abr 24
3093
Website Product Block Image Low Quality
ecommerce website
Avatar
0
nov 25
2296
What is the fastest website solution?
ecommerce website
Avatar
Avatar
1
may 23
5498
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información 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 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