Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

How to configure PyCharm for Odoo development in Windows.

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
developmentdevelopperguideodooodoo8Pycharm4
2 Odpowiedzi
104527 Widoki
Awatar
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
Awatar
Odrzuć
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

Awatar
Dhinesh
Najlepsza odpowiedź

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
Awatar
Odrzuć
Avini Wanigasinghe

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

Awatar
นายมนต์ชัย พงศ์พฤฒฺิพันธ์
Najlepsza odpowiedź

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
Awatar
Odrzuć
Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
Where to put odoo-pycharm-template file in windows installation of pycharm.
development template odoo odooV8 Pycharm4
Awatar
Awatar
Awatar
Awatar
3
maj 17
10802
Blank Page After Logged in. Rozwiązane
development odoo
Awatar
Awatar
Awatar
2
wrz 25
4426
Developing Custom Models
development developperguide
Awatar
Awatar
Awatar
2
wrz 25
1390
Odoo Server Error after adding depends in manifest.py Rozwiązane
development odoo
Awatar
Awatar
Awatar
2
lis 24
4437
Which is better for Odoo development VsCode or PyCharm? Rozwiązane
development odoo
Awatar
Awatar
1
wrz 23
6334
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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