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

What Are The Steps To Update A Custom Module?

Suscribirse

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

Se marcó esta pregunta
3 Respuestas
18754 Vistas
Avatar
Alex Gallien

I have been noticing inconsistant behavior when trying to update my custom modules. I have been restarting the OpenERP server each time (/etc/init.d/openerp restart) and selecting upgrade from Settings: Installed Modules: Module Name, but some of my changes aren't going through. I have even tried installing the module on a differnt database, but it still had the original configuration. These are mostly changes to the .py file, sometimes to the .xml. Any idea what is going on here? Am I missing something? I definitely have made and seen changes like this before, I don't know what is going on here. Thanks!

1
Avatar
Descartar
Alex Gallien
Autor

Thanks Ray. The phrasing 'Upgrade' was confusing to me. Could you elaborate on the second bit - about restarting the duplicate? Is there any way to check which one you are restarting? I am still getting inconsistent update results. For example, I added one more choice to a drop down menu (just a single python line change), restarted my server via '/etc/init.d/openerp restart', and clicked 'Upgrade' on my module, but the new menu item still isn't showing up.

Avatar
Ray Carnes
Mejor respuesta

Python changes are seen by the server once rebooted, not before (this is just how Python works).  The parts that define objects (models) will not be 'applied' unless you update the module, but other changes don't require you to update the module.  BUT - the best practice is to update the module every time you make Python changes.

XML changes are seen as soon as they are saved (no restart required), but never loaded until you update the module. The best practice is to update the module every time there is a change to an XML file.

In Summary: the best practice:  Restart the server and update the module every time you change either type of file.

Also - check that you haven't started the server twice, as the restart could be restarting the duplicate, not the one you are using to update the module.

4
Avatar
Descartar
Alex Gallien
Autor

By update the module, do you mean selecting 'Update Modules List' or going to the module in question and clicking 'Upgrade'?

Ray Carnes

The second. Updating Modules List simply scans the addons folders for modules that have been copied there since the last time that command was run and adds the to the list of modules that can be installed.

Alex Gallien
Autor

It definitely was the duplicate server error. I did a ps command and was able to find and kill the other openerp server. Do you have any other resources on why this happens? I couldn't find any information about it, and it had been causing lots of trouble.

Kasper Souren

Is there some code that automates this? I.e. a script that checks if files are changed and upgrades/restarts when needed?

Ray Carnes

I have created a command-line alias 'bounce' which restarts the server when needed. I think it is overkill to have a script that monitors every python file in the system (there are over 1,000). You and your developers know when you make a source code change, since you are logged into the system when you do it, so the last step is to type 'bounce' with my method.

Avatar
Andreas Tolstov
Mejor respuesta

changes in:

  • XML -> update module
  • Python -> restart server
  • JS,CSS -> reload webpage
4
Avatar
Descartar
Avatar
Ludo - 21South
Mejor respuesta

you may try to update via command line like "./openerp-server -u module_name -d db_name"

[EDIT] - Removed typo

0
Avatar
Descartar
gunnar

can you specify what or where this file is? "./operp-server.py"

Ludo - 21South

Ah, seems I made a type. It is the file openerp-server and it is the main executable when running OpenERP under linux. It should be in the root directory of the OpenERP installation. (normally somewhere under /opt/openerp ). The linux deamon points to this file when you start it.

Alex Gallien
Autor

In my (Linux) installation, it can be found at /usr/bin/

¿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