Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Artificial Intelligence
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Supermarché
    • Quincaillerie
    • Magasin de jouets
    Restauration & Hôtellerie
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brasserie
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Commerce
    • Homme à tout faire
    • Matériel informatique & support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Parcourir toutes les industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenir partenaire
    • Services pour partenaires
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

Setup Odoo.sh with VScode and Github

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
githubodoosetupvscodeOdoo.sh
1 Répondre
11692 Vues
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
Ignorer
Avatar
Bhavin Patel
Meilleure réponse

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
Ignorer
Germán Barrientos Mora

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

Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
How to Add a User to Access the Database on Odoo.sh? Résolu
Odoo.sh
Avatar
Avatar
1
nov. 25
5289
Odoo.SH Github account ownership transfer, trying to change the repository
Odoo.sh
Avatar
Avatar
Avatar
2
mars 25
9425
How to remove xml problem in vscode?
vscode
Avatar
Avatar
1
mars 25
2093
Odoo.sh sale commission Résolu
Odoo.sh
Avatar
Avatar
1
août 23
3504
Odoo.sh Bad Gateway
Odoo.sh
Avatar
0
nov. 21
4507
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenir partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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