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

Auto-expand the Chart of Accounts? Possible?

Suscribirse

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

Se marcó esta pregunta
8 Respuestas
6957 Vistas
Avatar
Ray Carnes

The Chart of Accounts by default is shown collapsed:

image description

I'd like it shown fully expanded by default, instead of requiring the user to click on all of the expand arrows:

image description

3
Avatar
Descartar
Avatar
Ray Carnes
Autor Mejor respuesta

UPDATED 5/26/15 (I added a git compatible patch for v8)

ORIGINAL ANSWER:

----------------------------------------------------------------------------------------------------------------

This is possible by adding several lines to the view_tree.js file in web addons.

Use the following bzr patch files:

v7

=== modified file 'addons/web/static/src/js/view_tree.js'
--- addons/web/static/src/js/view_tree.js 2013-08-29 12:44:48 +0000
+++ addons/web/static/src/js/view_tree.js 2014-03-23 20:10:31 +0000
@@ -210,6 +210,11 @@
} else {
self.$el.find('tbody').html(children_rows);
}
+ _(records).each(function (record) {
+ self.records[record.id] = record;
+ children_ids = record[self.children_field];
+ self.getdata(record.id, children_ids);
+ });
});
},

v8

=== modified file 'addons/web/static/src/js/view_tree.js'
--- addons/web/static/src/js/view_tree.js 2013-09-10 12:52:23 +0000
+++ addons/web/static/src/js/view_tree.js 2014-03-23 20:13:24 +0000
@@ -213,6 +213,11 @@
} else {
self.$el.find('tbody').html(children_rows);
}
+ _(records).each(function (record) {
+ self.records[record.id] = record;
+ children_ids = record[self.children_field];
+ self.getdata(record.id, children_ids);
+ });
});
},

----------------------------------------------------------------------------------------------------------------

UPDATE:

Use the following git patch file for v8:

index 380f160..0d8a05d 100644
--- a/addons/web/static/src/js/view_tree.js
+++ b/addons/web/static/src/js/view_tree.js
@@ -213,6 +213,11 @@ instance.web.TreeView = instance.web.View.extend(/** @lends instance.web.TreeVie
} else {
self.$el.find('tbody').html(children_rows);
}
+ _(records).each(function (record) {
+ self.records[record.id] = record;
+ children_ids = record[self.children_field];
+ self.getdata(record.id, children_ids);
+ });
});
},

3
Avatar
Descartar
Fabrice Henrion (fhe)

Great post Ray!

Temur

As I guess it'll affect any tree to be opened expanded, not only "Chart of Accounts" ? If so, then your question title does not exactly define what is this change for... please read my !Answer

Ray Carnes

I am now aware of any other views that are affected by this change, but this is a global change to the way certain types of views are shown.

Avatar
NextERP Romania SRL
Mejor respuesta

There was for v7 a module named web_group_expand, but i don't know if it's ported to v8..you can look after it.

1
Avatar
Descartar
Temur

I've found that module in v7. it's not exactly what I'm looking for, but it may be useful and I'll check if so. thank you very much.

Avatar
Serpent Consulting Services Pvt. Ltd.
Mejor respuesta

Guys,

We've added groupby expand feature on Odoo Apps Web Groupby Expand.

Hope this helps.

Thanks.

0
Avatar
Descartar
jignesh Bharadiya

It is not working in Odoo v11.

Avatar
Temur
Mejor respuesta

Hi Ray, 

As I guess code you posted in your answer will affect any tree like structure to be opened expanded, not only "Chart of Accounts" ? If so, then your question title does not exactly define what is this change for. However It should be interesting how to do same thing really for "Chart of Accounts", not for any tree (I do not want to affect other trees). Additionally I've requirement to expand Chart of Accounts to some level (lets say 1 or 2), not Fully as it's in your case. If I expand to level 1, so on second picture in the question above, account "1" will be displayed expanded and accounts "100" and "150" collapsed. If I decide to expand to level 2, then picture in this example will be same, but if the tree has more deep, so next levels will be collapsed. i.e. if in this picture account "1399" will be of "view" type and have children, then it'll displayed collapsed and so on.  Any tips?

Regards,

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

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

Registrarse
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