Skip to main content

IdeaCode Academy Odoo Standard Structure — starting point repo.

Project description

Odoo Standard Scaffold

 odooss create <your-dir-path> --odoo_version 18.0 --python 3.10 --vcs github
  • --odoo_version - for odoo docker image tag
  • --python - for python--slim docker image tag
  • --vcs - for version control system (e.g. github, gitlab, bitbucket, etc...)

output will be like this

  • addons/
    • README.md
  • .dockerignore
  • .gitignore
  • .pre-commit-config.yaml
  • compose.yml
  • Dockerfile
  • README.md
  • requirements.txt
  • ruff.toml

and then create currently dir in config/odoo.conf file.

[options]
admin_passwd=xxxx
addons_path=/mnt/extra-addons

create odoo_pg_pass file

your-password=xxxx

add your repo (optional).

git remote add origin <repo-url>

check your code format using ruff.

ruff format

check your code and fixed it.

ruff can check and auto fix for some and others for manually.

ruff check --fix

now you can push to your branch.

if pushing was failed. you need to check with ruff again.

git add .
git commit -m "[ADD] project initalize"
git push origin <branch>

if you are using automaion flow. like github action need to follow instructions.

Github

Settings >> Security >> Actions secrets and variables >> secrets >> Repository secrets

add this variables

  • ODOO_DB_NAME
  • ODOO_DB_PASSWORD
  • REMOTE_HOST - 192.169.100.1
  • REMOTE_USER - ubuntu or root
  • SSH_FILE_PATH - /root/your-project/
  • SSH_PRIVATE_KEY - server access private key

now you can use smart commands and add in git commit message like this -

[ADD] res.partner model in age fields. #odoo-module:contacts,sale

now git push and check your github action.

we will be continue for other vcs (like gitlab, bitbucket, etc....) in the future

Agga, IdeaCode Academy

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

odooss-1.0.2.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

odooss-1.0.2-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file odooss-1.0.2.tar.gz.

File metadata

  • Download URL: odooss-1.0.2.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.8

File hashes

Hashes for odooss-1.0.2.tar.gz
Algorithm Hash digest
SHA256 1601053049dd576fff7fcc032a30bc48d2d8945bc055869ffa3228521147dab3
MD5 dd6247989a6c1773e93e4944fc60bf38
BLAKE2b-256 aa471b91af118aac07e814efa1edd9f0a71da3064a6881b786a39211126f72ff

See more details on using hashes here.

File details

Details for the file odooss-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: odooss-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 24.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.8

File hashes

Hashes for odooss-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5c4951cacbc3970973a398fb70ee038e3432778cb2d377c9d912da44c7bdd6e4
MD5 801d71eef4ca8275e2701d91aa268909
BLAKE2b-256 32359f65c09213e0535194e698faec9032ff87aee877d9c79564d9ef4ea0af9f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page