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

How to add new tab to module in Odoo 8?

Suscribirse

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

Se marcó esta pregunta
viewlayoutcustomizeproductsformviewtab
1 Responder
8312 Vistas
Avatar
Yenthe Van Ginneken (Mainframe Monkey)

Hey guys

I've been trying to add a new tab to the "Products" view under sales but I can't get any new tabs made.
Could anybody tell me how/where to do this please? I know there is an answer for V7 (https://www.odoo.com/forum/help-1/question/how-to-add-new-tab-to-module-19050) but there is no information about how to do it in V8.
You can see what I want here: http://imgur.com/M5khmn8


With kind regards
Yenthe

2
Avatar
Descartar
Stephen Mack

I look forward to reading it.  Thanks.

Yenthe Van Ginneken (Mainframe Monkey)
Autor

Stephen, I've written out the guide for V8 in the comment down here. This is currently for V8 but I will probably add one for V7 too. Hope this explains everything you need!

Avatar
Yenthe Van Ginneken (Mainframe Monkey)
Autor Mejor respuesta

Found the solution myself.

Odoo V8:

1. Go to 'about Odoo'
2. Activate the developer mode.
3. Go to your view you want to edit, for example to sales > products and open up a product.
4. Open the debug view (top left) and click on edit FormView
5. Find the field 'inherited view' and open it.
6. Edit the code under the architecture tab in the new window.
6A. You should first add the fields you want to add to your view in your database. The model where you should insert this is in the 'Object' field, for example product.template. You can add fields to a model by going to settings > Database structure > models. Find the correct model there, make your new fields, give them the correct type and save them.
6B. Edit the code under the architecture tab and add the fields with the same name as you've named them in the database.
7. Save and refresh your page, you will now see your now tab with fields.

I've also made a guide about this in image form with even more information which can be found here: http://imgur.com/a/1C1gK
 

Odoo V7:
1. Go to 'about Odoo'
2. Activate the developer mode.
3. Go to your view you want to edit, for example to sales > products and open up a product.
4. Open the debug view (top left) and click on edit FormView
5. Edit the code under the architecture tab.
5A. You should first add the fields you want to add to your view in your database. The model where you should insert this is in the 'Object' field, for example product.product. You can add fields to a model by going to settings > Database structure > models. Find the correct model there, make your new fields, give them the correct type and save them.
5B. Edit the code under the architecture tab and add the fields with the same name as you've named them in the database.
6. Save and refresh your page, you will now see your now tab with fields.

I've also made a guide about this in image form with even more information which can be found here: http://imgur.com/a/UphvK

0
Avatar
Descartar
samba

Hi Yenthe, What's happen in code when we do like this. I did this one but i unable to traced out one thing, odes It adds the code in actual module or does it will create separate files for this extra fields.

Yenthe Van Ginneken (Mainframe Monkey)
Autor

samba, what exactly would you like to know? I think you'd like to know the flow of your data? In essence all the data in your new fields will be handled by Odoo and saved into the correct fields of the model. You only need to add the fieldnames to the model and edit the code and your set to go. Odoo will track where your data should be stored thanks to the model path and the fieldnames! I hope this answers your question.

¿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
Change tabulation order on form data entry
formview tab
Avatar
0
may 17
4567
oe_edit_only and oe_read_only classes in Odoo 16
view css formview
Avatar
Avatar
1
abr 23
6009
How to customize the field tabindex in Odoo 12
formview tab Odoo12.0
Avatar
Avatar
1
abr 19
5640
[8.0] Custom view per user not working Resuelto
view customize 8.0
Avatar
Avatar
1
jun 15
4012
Is there a way to edit multiple items, i.e. products, (and possibly contacts, customers etc) in list view? Resuelto
view list edit products
Avatar
Avatar
Avatar
Avatar
Avatar
5
mar 22
16114
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