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

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.1.tar.gz (21.6 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.1-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for odooss-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c2482a187b128a380af10b796b09fe1c52489bd129dc1e1a3fd1240939d8a751
MD5 7da26ee24c8375726f0a8f35647c82f6
BLAKE2b-256 69fa4273271a6a002eea22f639fefd5ef9a4af1b8fccc6467084195b1079db92

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for odooss-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3af700627291e747bdc0d5fd6562a33595fb28b88ca4113e5ff8e1dfc780a9eb
MD5 74a84ed43e271c38eb1d0d7a7463addb
BLAKE2b-256 589e8c6cd43642fc17b25ee55a6953abb2cf52995a44140fc6d52b6e88482fa4

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