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

[Odoo V8 - WebsiteBuilder module] Page content in another page

Suscribirse

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

Se marcó esta pregunta
website_builderodooV8
3 Respuestas
3243 Vistas
Avatar
Tessa Roberts

Hi !


First, I would like to apologize because English is not my native language.

I have a question about the WebsiteBuilder module in Odoo V8.

I am a beginner on Odoo...so I am trying things to see if it works or not.


I would like to know if it possible to display a page content (or a part of a page content) in another page.

To be clear, I have created 2 pages. PageX and PageY.

I'd like to display the content of PageY on PageX.


I tried to "just" call the page name, like that :


<t t-name="PageY"> 
<t t-call="website.layout">
<div id="wrap" class="oe_structure oe_empty">
<div class="oe_structure">
PageY content
</div>
</div>
</t>
</t>

<t t-name="PageX">
<t t-call="website.layout">
<div id="wrap" class="oe_structure oe_empty">
<div class="oe_structure">
PageX content
<t t-call="PageY" />
</div>
</div>
</t>
</t>

This works but on PageX, the header, the menu and the footer are display twice. (That is normal...)

Is there a way to add only the content of the page ?

Something like that : 

<t t-name="PageY"> 
<t t-call="website.layout">
<div id="wrap" class="oe_structure oe_empty">
<div class="oe_structure">
<t t-name="pageY_content">PageY content</t>
</div>
</div>
</t>
</t>

<t t-name="PageX">
<t t-call="website.layout">
<div id="wrap" class="oe_structure oe_empty">
<div class="oe_structure">
PageX content
<t t-call="pageY_content" />
</div>
</div>
</t>
</t>

I tried but the t-name="PageY_content" declaration is not recognized by the system.

I tried to create a "hidden page" (not visible by the menu) and called it "PageY_content". I have the following error :

Odoo Warning

ValidateError

Field(s) 'arch' failed against a constraint:Invalid view definition

Error details: Model not found : False

Error content : View 'pageX' [view_id:xxxx, xml_id:website.pageX,> model:n/a, parend_id:n/a]


I would like to know if there is a way to have this result "properly" ? 

Is the "PageCeption" system impossible to implement or contrary to a good use of the module?

Would it be possible, using the HTML editor, to create the content elsewhere and be able to call it wherever I want?


Thank you in advance for your assistance

0
Avatar
Descartar
Tessa Roberts
Autor

Hi !

Thanks for your help !

Do you know where I need to create this template ? I tried to add it in the website_templates.xml file and then I "updgraded" the website builder module.

But when I try to call it in one of my pages, I have the following error :

500 : Internal Server Error

Error message : Invalid template id 'contentY_id'

QWeb Error message : Loader could not find template 'contentY_id'

Do you know how to solve this problem ? And is there a way to display the new template in the HTML editor ?

Avatar
Tessa Roberts
Autor Mejor respuesta

Hi !

I finally managed to call the template anywhere I want.

And I managed to display it in the HTML editor. But now, do you know if there is a way to "edit" the content of the template using the graphical editor (instead of the HTML editor) of the website module ? 

My new template is not really a page, so I can not access it from a menu or from the URL. I can only edit it using the HTML editor.

 

<t t-name="mytemplate"> Editable in the HTML editor but not editable using the graphical editor
<!-- content of my template -->
</t>

<t t-name="myPage"> Editable in the HTML editor AND editable using the graphical editor
<!-- content page -->
<t t-call="mytemplate" /> (this display the content of mytemplate)
</t>

<t t-name="myOtherPage"> Editable in the HTML editor AND editable using the graphical editor
<!-- content page -->
<t t-call="mytemplate" /> (this display the content of mytemplate)
</t>
0
Avatar
Descartar
Avatar
Bharat Parmar (bhp)
Mejor respuesta

create one template that you need to use in both page and don't use <t t-call="website.layout"> in this template .

<template id="contentY_id">
     <!--Your_pageY_content-->
</template>

and use this template in both page like this,

<t t-name="PageX">
    <t t-call="website.layout">
        <div id="wrap" class="oe_structure oe_empty">
            <div class="oe_structure">

                <!--Your_pageX_content-->

                <t t-call="contentY_id"/>
            </div>
        </div>
    </t>
</t>

<t t-name="PageY">
    <t t-call="website.layout">
        <div id="wrap" class="oe_structure oe_empty">
            <div class="oe_structure">
                <t t-call="contentY_id"/>
            </div>
        </div>
    </t>
</t>

I hope this will helps you. 

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
Odoo V8 with Internet Explorer
compatibility website_builder odooV8
Avatar
0
sept 16
7100
(((Guia~JetBlue!@!Oficial^Hablo//+182)) ¿Cómo llamar a JetBlue desde República Dominicana?
website_builder
Avatar
0
dic 25
41
(((Guia~ Latam!@!Oficial^Hablo//0800))) ¿Cómo llamar a LATAM Airlines desde Chile?
website_builder
Avatar
0
dic 25
142
Website Builder theme breaks after upgrading to Odoo 17 — CSS not loading
website_builder
Avatar
0
dic 25
32
AssertionError while install Appoinment in website
website_builder
Avatar
Avatar
Avatar
2
nov 25
510
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.

Sitio web hecho con

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