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 use two different models in the same ir.ui.view view?

Suscribirse

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

Se marcó esta pregunta
viewsproductinheritancemodelsvariant
1 Responder
9675 Vistas
Avatar
Pascal Tremblay

Hello all,

I don't understand something about view inheritance. I need (again and again) your help.

When we click on Sales->Products->Products (form view) :

This view product.product_template_form_view is called and declared with model product.template. I understand this.

<record id="product.product_template_form_view" model="ir.ui.view">

<field name="name">product.template.common.form</field>

<field name="model">product.template</field>

<field name="mode">primary</field>

<field name="arch" type="xml">

<form string="Product">    

                [...]

</form>

            </field>
</record>


When we click on Sales->Sales->Products variants (form view) :

This view product.product_normal_form_view is called and declared with model product.product. It inherits the above view

product.product_template_form_view. I don't understand this! These two views don't have the same model...


<record id="product.product_normal_form_view" model="ir.ui.view">

<field name="name">product.product.form</field>

<field name="model">product.product</field>

<field name="mode">primary</field>

<field eval="7" name="priority"/>

<field name="inherit_id" ref="product.product_template_form_view"/>

<field name="arch" type="xml">

<form position="attributes">

<attribute name="string">Product Variant ZZZ</attribute>

</form>

                [...]

</field>

</record>



I would really need example, documentation about this concept.

How can a view inherit an other view from an other model?

I thought that a view that inherits an other view must have the SAME MODEL... No???


Update #1 (january 4th)

Old post : https://bugs.launchpad.net/openobject-server/+bug/702337


0
Avatar
Descartar
Avatar
Tarek Mohamed Ibrahim
Mejor respuesta

I searched the id product_template_form_view in OpenERP 7 and found it being used only with product.template, so there is no problem there.


In Odoo 8 all places referred to product.template, except in the 'product' module. I can guess that there is no problem in this change if we took in consideration that the 'product.product' inherits from 'product.template'


0
Avatar
Descartar
Tarek Mohamed Ibrahim

Pascal, after I posted my reply I noticed the old post link you added. This link suggests the feature you are discussing in this post. I think they changed this in Odoo 8 to be allowed.

Pascal Tremblay
Autor

It would be nice to have some examples of those changes in Odoo 8 on the web... I would want to read it somewhere... Not you? I don't find any example of this concept. No proof.

Pascal Tremblay
Autor

oh! I forgot... Thanks for your answer mister.

Annadurai

<field name="mode">primary</field> use?

¿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
How to limit which fields are shown from inherited model Resuelto
views inheritance models odoo16features
Avatar
Avatar
1
may 23
3204
odoo10 view inherit , my views should be the last Resuelto
views product inheritance odoo10.0
Avatar
Avatar
Avatar
3
mar 21
8426
Is it possible to inherit existing model without affect the default model? [Solved]
v8 views inheritance models
Avatar
Avatar
2
may 15
7378
Invalid XML when trying to inherit
views inheritance models validate
Avatar
Avatar
Avatar
3
mar 15
10354
change position of inherited field odoo16 Resuelto
salesteams views product inheritance odoo16features
Avatar
Avatar
2
mar 23
2977
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