Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Setup Odoo.sh with VScode and Github

Subscribe

Get notified when there's activity on this post

This question has been flagged
githubodoosetupvscodeOdoo.sh
1 Reply
11371 Views
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
Discard
Avatar
Bhavin Patel
Best Answer

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
Discard
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!

Sign up
Related Posts Replies Views Activity
How to Add a User to Access the Database on Odoo.sh? Solved
Odoo.sh
Avatar
Avatar
1
Nov 25
5045
Odoo.SH Github account ownership transfer, trying to change the repository
Odoo.sh
Avatar
Avatar
Avatar
2
Mar 25
9092
How to remove xml problem in vscode?
vscode
Avatar
Avatar
1
Mar 25
1946
Odoo.sh sale commission Solved
Odoo.sh
Avatar
Avatar
1
Aug 23
3365
Odoo.sh Bad Gateway
Odoo.sh
Avatar
0
Nov 21
4348
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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