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 configure PyCharm for Odoo development in Windows.

Suscribirse

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

Se marcó esta pregunta
developmentdevelopperguideodooodoo8Pycharm4
2 Respuestas
104236 Vistas
Avatar
Ibrar Ahmad

I want to configure pycharm in windows so that i could be able to create mudules from scaffold automatically. Then i can code it. Test it. and then run it automatically using run button.

2
Avatar
Descartar
Sehrish

Reference: http://learnopenerp.blogspot.com/2019/10/configure-pycharm-with-odoo.html

Harsh Dhaduk

Auto configure Odoo on Pycharm : https://www.youtube.com/playlist?list=PLAR8TpPnVeTS7nnZLqI1o2HctgNjmX4VF

Ibrar Ahmad
Autor

Thaaaank you sooooooooooooo much bro. i am going to try it.

Cybrosys Techno Solutions Pvt.Ltd

Hi,

Try this blog.

https://www.cybrosys.com/blog/configure-pycharm-odoo-development-windows

Hope it helps

Avatar
Dhinesh
Mejor respuesta

Openerp in pycharm:

Create a new project:

File -> New project:

Location: -- Give your location (Similar to eclipse workspace)

Interpreter: python2.7

Adding source content in the new project:

File -> Settings;

In Project:{project_name} tab -> Project structure:

Add content root -> Select your different source folders.

In Appearance & Behaviour:

Keymap: Select Eclipse to get the same shortcut functionality as eclipse.

In Editor -> General -> Appearance: Enable show line numbers for debugging purpose.

Click Apply & Ok.

To create run configuration:

Run --> Edit Configurations, click "+" on the top left to create a new configuration with the following settings:

Name: openerp

Single instance checkbox: checked

Script: /opt/openerp/odoo.py

Script parameters: --config=/openerp-server.conf

Python interpreter: Python 2.7.6 (usr/bin/python2.7)

Working directory: /opt/openerp/pycharm/

To Add VCS integrations:

VCS -> Enable version control integration -> Select Subversion for openerp and Git for odoo incase you're working in git.

You can perform all RabbitVCS operations in pycharm itself.

Add external package:

External Libraries will be automatically loaded when you define interpreter. Incase you need to add extra library means,

Select Project -> File -> Settings -> Project:{project_name} tab -> Project Interpreter -> click "+" on the top left to add new packages.

Customizing Toolbar:

Enable toolbar from View -> Toolbar.

Right click toolbar -> Customize menu and toolbar -> Expand Main Toolbar.

Click any toolbar -> Add after -> Select any menu that needs to be appear in the toolbar.

You can use odoo or openerp, whatever you wish. This is the template i have been using for a while in linux. You could easily change it to windows. Only the source location gonna change.

Scaffold:

To perform scaffold operation pycharm has inbuilt terminal facility. you could go to odoo directory and issue the scaffold command to get it working. I hope you know the command for scaffolding.

Templates:

Usage video link: https://goo.gl/FXpspb

Github source link: https://github.com/mohamedmagdy/odoo-pycharm-templates (find the xml in attachments)

Just find the path: ~/.PyCharm40*/config/templates (in /home/harmony) and save the XML file there.

Invalidate cache and restart pycharm to make it work.

6
Avatar
Descartar
Avini Wanigasinghe

I followed these steps. But still I cann't import modules from openerp. any help please

Avatar
นายมนต์ชัย พงศ์พฤฒฺิพันธ์
Mejor respuesta

I have tried this and there were many obstacles about Python and Windows API. The following are my problem and resolution.

1. You might know that PyCharm automatically run this statement for you.

    pip install -r requirements.txt   

  result:

     missing vcvarsall.bat for making gevent, psycopg2

  To solve this, download and install Microsoft Visual C++ Compiler for Python 2.7 at

https://www.microsoft.com/en-us/download/details.aspx?id=44266

  run this again

pip install -r requirements.txt

  someone recomment to run (I didn't know the reason behind, but I did it)

pip install --upgrade setuptools

2. Make sure you've already installed Postgresql and set your Odoo config file connect to the DB. For example, here is a part of my config file.

    db_host = localhost

    db_maxconn = 64

    db_name = False

    db_password = openpgpwd

    db_port = 5432

    db_template = template1

    db_user = openpg

    pg_path = C:\Program Files (x86)\Odoo 9.0-20160803\PostgreSQL\bin

3. Try to run your Odoo.py on PyCharm. If you encounter psyconpg2 error, try to reinstall it.

    pip uninstall psyconpg2

    pip install psyconpg2

4. The next problem you may have found is about pywin32. Just download and install Python for Windows Extensions at

    https://sourceforge.net/projects/pywin32/

5. Now your odoo.py should be able to run. Optional, if you want to set PyCharm (live)template as mentioned on the first answer. On Windows, the path to put Odoo.xml (template file) is a bit different.
    <your home directory>\.<product name><version number>\config\templates

for example

    C:\Users\John\.PyCharm2016.2\config\templates

if "templates" folder doesn't exist, create one.


My Environment
    OS:           Windows 10 Home 64bit  
    Python:   2.7.12 [MSC v.1500 32 bit (Intel)] on win32 run on 32bit
    Editor:     PyCharm Community Edition 2016.2.2

     Odoo:     9.0 Communication Source from GitHub
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
Where to put odoo-pycharm-template file in windows installation of pycharm.
development template odoo odooV8 Pycharm4
Avatar
Avatar
Avatar
Avatar
3
may 17
10706
Blank Page After Logged in. Resuelto
development odoo
Avatar
Avatar
Avatar
2
sept 25
4253
Developing Custom Models
development developperguide
Avatar
Avatar
Avatar
2
sept 25
1163
Odoo Server Error after adding depends in manifest.py Resuelto
development odoo
Avatar
Avatar
Avatar
2
nov 24
4241
Which is better for Odoo development VsCode or PyCharm? Resuelto
development odoo
Avatar
Avatar
1
sept 23
6072
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.

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