2022-09-13 07:55:28 +02:00
2021-06-24 08:53:33 +02:00
2022-09-09 14:48:32 +02:00
ref
2022-09-01 17:00:40 +02:00
ref
2022-08-24 10:26:17 +02:00
ref
2022-08-24 10:26:17 +02:00
ref
2022-09-09 14:48:52 +02:00
ref
2022-08-24 10:26:17 +02:00
2022-06-29 16:10:03 +02:00
2022-09-13 07:55:28 +02:00
2022-08-30 09:33:01 +02:00
2022-07-14 12:20:32 +02:00
2022-06-29 08:36:55 +02:00
ref
2022-08-24 10:26:17 +02:00
2022-03-25 11:22:58 +01:00
2021-07-27 12:05:01 +02:00
2020-08-17 09:21:11 +02:00
2021-11-08 21:39:04 +01:00
2022-06-29 08:49:11 +02:00
2022-06-29 08:49:11 +02:00
2022-09-09 14:48:32 +02:00
2022-09-09 14:48:32 +02:00
2022-09-13 07:55:28 +02:00
2022-08-30 09:33:01 +02:00

Odoo Development

This is the Mint System Odoo development environment.

This projects provides a highly opinionated way to develop Odoo and Odoo modules. It supports the following scenarios:

  • Docker Compose: Spin up a Odoo, Postgres and pgAdmin Docker container and experiment locally
  • Import and Export Database: Use Odoo scripts to copy and restore a remote customer database in the local development environment. Investigate issues and deploy the database at wish
  • Community Edition: Checkout the Odoo Community Edition and start editing the source code
  • Enterprise Modules: Checkout the Odoo enterprise modules and deploy them into the Odoo Docker container or the Odoo source.
  • Develop Modules: Scaffold a new module, develop new Odoo features locally and much more
  • Customizing Snippets: Create snippets and push them to an Odoo database
  • Odoo Scripts: Develope scripts to patch Odoo modules

Requirements

The Odoo development environment has the following requirements:

Usage

The usage section is a set of workflows. Pick the one required by your scenario. See task help or task for details about the projects commands.

Clone this repository.

git clone git@github.com:Mint-System/Odoo-Development.git
cd Odoo-Development

Checkout branch.

task checkout 13.0
# or
task checkout 14.0
# or
task checkout 15.0

Install Odoo scripts

task install-odoo-scripts

Disable auto install for Odoo apps.

task disable-auto-install

Docker

Run Odoo with Docker container.

Start and initialize Odoo with Docker

Run docker compose.

task start
# or
npm run task-start

Initialize database.

docker-odoo-install

Open browser to http://localhost:8069 and login with admin:admin.

Install custom module

docker-odoo-install -m show_db_name

Native

Run Odoo from source.

Install Odoo native requirements

Pull the odoo submodule and install the python dependencies.

git submodule update odoo
task install-native

Initialize and start Odoo from source

Run database container only

task start db
# or
npm run task-start-db

Initialize database

task init-db

Start Odoo from source

task start native
# or
npm run task-start-native

Open browser to http://localhost:8069 and login with admin:admin.

Create a new module from source

Scaffold a new module.

task create-module addons/project_report

Common

Instructions that are true for Docker and native usage paths.

Enable developer mode

Open this url http://localhost:8069/web?debug=1, which contains the debug flag.

Manage database with Docker

Open database manager http://localhost:8000/ and login with admin@example.com:admin.

Remove Docker conainers

Kill docker containers and volumes.

task kill

Stop all Docker containers

task stop

Remove database

task drop-db

Mail

View emails

Start mail service.

task start mail

Open the mail client http://localhost.

Configure mail server

Install the odoo mail server data package.

task install-module mail_data

Send email

Use curl to send an email:

task send-support-mail

Trooubleshooting

inotify instance limit reached

Problem

While starting the native server this error is thrown:

OSError: [Errno 24] inotify instance limit reached

Solution

Increase ifnotify watch limit.

sudo sysctl fs.inotify.max_user_watches=52428800
S
Description
No description provided
Readme AGPL-3.0
13 MiB
0 Stars 3 Watchers 0 Forks
Languages
Shell 48.7%
Python 40.4%
JavaScript 7.6%
Dockerfile 2.8%
HTML 0.3%
Other 0.2%