Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Artificial Intelligence
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

Setup Odoo.sh with VScode and Github

Odebírat

Get notified when there's activity on this post

This question has been flagged
githubodoosetupvscodeOdoo.sh
1 Odpovědět
11693 Zobrazení
Avatar
Sylvain Caron

Hello everyone,

Here is my problem, I want to do my Odoo module developments on VScode in order to take advantage of all the advantages, in particular Python extensions

All the environments I work on are odoo.sh bases.

After having done an Odoo experience last year and having been able to discuss with the developers on site, I was told that they do everything "locally" so I suppose via the installation of a local Odoo of PostgreSql etc.. .


However, I'm having trouble understanding the necessary configuration, i.e.:

  • How to manage configuration files
    • Several SH bases, on different versions (v14 -> v16)
    • Several githubs

  • Is DL required for each Odoo version needed for each odoo.sh database?
    • Or is there an easy way to version swap

  • How to have identical customer data to do our tests ?
    • After some research, it is impossible to make a remote connection to a P-SQL database if it is on odoo.sh, apparently for security reasons
    • I assume you have to upload a local backup?

I also tried an SSH connection (like the SH editor I guess) via Remote SSH from VScode but the connection drops easily and we waste more time waiting for the loads than doing development

Is there any documentation that shows how to setup this set ? or, can I have information on the setup of such an environment

It is possible that I am vague on certain points, do not hesitate to ask me questions.

Thanks in advance,

0
Avatar
Zrušit
Avatar
Bhavin Patel
Nejlepší odpověď

Yes It is possible, Setting up an Odoo development environment with VS Code and GitHub can be a bit complex, but it can be done by following a few steps.

Install Odoo Locally:
To work on Odoo modules locally, you will need to install Odoo on your machine. You can download the installation package from the Odoo website or use Docker to set up a container with Odoo installed.

Connect to Odoo.sh:
After installing Odoo, you will need to connect to your Odoo.sh databases. You can do this by configuring the odoo.conf file with the credentials for your Odoo.sh databases. This file is usually located in the Odoo installation directory.

Use Git to Manage Your Code:
To keep track of your code changes, you can use Git to manage your code. You can create a repository on GitHub and clone it to your local machine. Then you can use VS Code to edit your code, commit changes, and push them to GitHub.

Use the Same Data for Testing:
To test your modules, you can use the same data that you have in your Odoo.sh databases. You can use the backup and restore tools in Odoo to create a backup of your Odoo.sh database and restore it on your local machine. This way, you can work with the same data that you have on your Odoo.sh databases.

Versioning:
If you need to work with different versions of Odoo, you will need to install each version separately on your local machine. You can use virtual environments to keep each version separate and avoid conflicts between them.

Use Odoo VSCode Extension:
To enhance your development experience, you can install the Odoo VSCode extension. This extension provides code snippets, syntax highlighting, and debugging tools to make your development process easier.

Use DevContainer:
Another option is to use the DevContainer feature of VS Code, which allows you to develop in a containerized environment. You can configure a container with all the necessary dependencies and tools, and use it to develop your modules.

There are several resources available online to help you set up this environment, including the Odoo documentation, blogs, and forums. You can also find tutorials and videos that guide you through the process.

0
Avatar
Zrušit
Germán Barrientos Mora

Can you give an example of how Odoo.sh database is configured in odoo.conf? Thanks

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
How to Add a User to Access the Database on Odoo.sh? Vyřešeno
Odoo.sh
Avatar
Avatar
1
lis 25
5290
Odoo.SH Github account ownership transfer, trying to change the repository
Odoo.sh
Avatar
Avatar
Avatar
2
bře 25
9425
How to remove xml problem in vscode?
vscode
Avatar
Avatar
1
bře 25
2093
Odoo.sh sale commission Vyřešeno
Odoo.sh
Avatar
Avatar
1
srp 23
3504
Odoo.sh Bad Gateway
Odoo.sh
Avatar
0
lis 21
4507
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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