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.0.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.0-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: odooss-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 3b698b646b8764f4bf889f8fa5bd555df09f1ea4cb5c5fd735a7f338bb795d5f
MD5 e6b358705006f9d21c79a44ebcdc2ccb
BLAKE2b-256 3da8f7e39b9604461390f0e561efeb98b81bd612cbfded9843574dc902c4e94f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: odooss-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed2f864dfcc92434dfe3fb7b3cf13df976d5c79ca722527eace6981428821e66
MD5 878adee1af544b9f6d017670a8116ba3
BLAKE2b-256 87e7698c940552211a8d6829d37808671061835f774d57dd40fb8d6b693f73de

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