Skip to content
Snippets Groups Projects
To find the state of this project's repository at the time of any of these versions, check out the tags.
NEWS.rst 20.39 KiB

History

21.16.1 (2024-10-25)

Bugfixes

  • Put back odoo_scripts.config.Configuration (Configuration)

21.16.0 (2024-10-24)

Features

  • When the environment variable ODOO_VERSION is set, use it to find odoo type

21.15.2 (2024-10-24)

Bugfixes

  • run_tests: try to find modules path rather than depending on coverage to do so. In Odoo 17/18, this cause problem with psycopg2

21.15.1 (2024-10-24)

Bugfixes

  • Fix typing errors for mypy, use ruff

21.15.0 (2024-10-24)

Features

  • Add support for odoo 18 projects
  • run_tests: allow setting an empty COVERAGE_SOURCE

Bugfixes

  • run_tests: fix exiting with return code

21.14.3 (2024-10-15)

Bugfixes

  • docker_build_copy: Fix python package directory name for whool (it expects the directory name to be the same as the module name)

21.14.2 (2024-10-11)

Bugfixes

  • update_duplicate_sources: clean up submodules

21.14.1 (2024-10-11)

Bugfixes

  • update_duplicate_sources: fix deleting existing content

21.14.0 (2024-10-11)

Features

  • 🐳 add vendir to image

21.13.0 (2024-10-11)

Features

  • 🐳 add evolve in image

21.12.0 (2024-10-11)

Features

  • Add openssh-client in image

21.11.0 (2024-10-10)

Features

  • update_duplicate_sources:
    • handle git and mercurial as source or target
    • add argument to indicate target branch
    • add argument to specify target version system
    • when pushing a new branch, also try the ancestor branches too rather than update on tip (was done when pushing to mercurial)
    • add argument to set commit message on duplicated repository

21.10.2 (2024-09-23)

docker_dev_start: fix incorrect usage of networks.

21.10.1 (2024-09-16)

docker_build_copy: Fix copying a non CVS package.

21.10.0 (2024-09-04)

docker_dev_start: Add possibility to run anthem scripts rather than start the server.

21.9.1 (2024-08-26)

Fix building when the project has no default path defined.

docker_py3o: fix incorrect python on whales usage.

21.9.0 (2024-07-09)

docker_build: add --empty option to avoid compiling all the modules and packages in the image. When used locally, the local modules and packages will be mounted instead, so there is no need to compile/install them.

21.8.3 (2024-06-21)

Fix marabunta mode to be dev rather than local.

21.8.2 (2024-06-19)

docker_build_copy: fix issue with duplicated python packages target directory.

21.8.1 (2024-05-28)

Fix network mode when running some containers.

21.8.0 (2024-05-06)

docker_pylint: Display pylint version.

list_modules: fix code error.

21.7.3 (2024-04-30)

Fix incorrect warning about unsupported odoo17.

21.7.2 (2024-04-23)

start: do not loose odoo return code value

21.7.1 (2024-04-22)

run_tests: fix function name.

21.7.0 (2024-04-22)

Refactor of test results display. run_tests, do_tests.zsh, start: improve handling of the log files. Added tests for test results display and error detection.

21.6.0 (2024-04-18)

run_tests: allow setting odoo_scripts_run_tests_logfile to keep the log of tests

21.5.1 (2024-04-18)

Fix readme.

21.5.0 (2024-04-18)

Compatibility with Odoo 17:

  • add odoo17 value for odoo_type
  • when black/flake8/isort is run on an odoo 17 super project, they are either ignored or raise an exception

Replaced black/flake8/isort with ruff.

21.4.1 (2024-03-21)

black

21.4.0 (2024-03-21)

docker_build, docker_dev_start: give values to VERSION/VERSION_ARG/SENTRY_RELEASE_TAG/SENTRY_RELEASE closer to what the built image value would be.

do_tests: only add user/password if provided

docker_dev_start:

  • add argument to disable queue_job delay
  • fix issue with missing marabunta db user that breaks anonymize

21.3.0 (2024-03-21)

Allow setting marabunta_db_user and marabunta_db_password in global configuration file and reuse it if set and they are not provided in the command line.

21.2.4

docker_build_copy: Handle empty packages.

21.2.3

run_tests: Avoid using deprecated grep environment variable.

21.2.2

Fix issue when building a package whose name is available elsewhere.

21.2.1

docker_build_copy: Handle non mercurial repository correctly when searching for packages.

21.2.0

docker_build_copy: Apply any local changes from python packages when building. This requires the patch binary to be in the path.

21.1.0

docker_redner: Ease running the command by providing same default as docker_dev_start --start-redner.

Factorize postgres connection code.

21.0.8

Fix detecting existing container.

docker_dev_start: Fix missing proxy mode in command line when using workers.

Fix running redner when asked to use docker network.

21.0.7

Fix running redner.

21.0.6

docker_build: fix issue with missing buildx. (is_installed is working correctly)

21.0.5

Avoid docker.buildx.is_installed() as it reports installation even if it is not installed.

21.0.4

black

21.0.3

Fix flake8/isort.

21.0.2

docker_dev_start and docker_pylint: do not duplicate mount point for songs when they are correctly defined in python_packages.

21.0.1

docker_build_copy: Do not do strange thing if . is defined in python_packages

21.0.0

Use python_on_whales rather than Docker-py to use buildkit when building images.

https://github.com/docker/docker-py/issues/2230

If buildx for docker is installed, use it to build.

do_tests: Add --odoo-sources option available on docker_dev_start.

20.14.0

docker_build: Use the Orus API token if available (giving it to docker in the environment variable PIP_INDEX_URL)

20.13.0

Add version detection.

Add information indicating that Orus API token is required in configuration. Defaults to False.

20.12.2

Fix issue with secretstorage when docker section is not installed.

20.12.1

do_tests.zsh: Fix pg_extensions use, and allow setting unaccent to install it.

20.12.0

Use SecretStorage to store Orus API token.

20.11.0

do_tests.zsh: allow using env var pg_extensions to describe extensions to install. Allow compatibility with modules requiring a specific extension.

20.10.1

do_tests.zsh: Fix issue with log handler.

20.10.0

Use tomli instead of toml for python < 3.11.

Download wheel for python packages if able, caching them. Use multiprocess to speed up coping/compiling/downloading.

20.9.0

Allow setting log handler instead of log level.

20.8.2

docker_build: When building image with dev tools, do not add the user flags. This allows using venv and when odoo is installed in a user, it is picked automatically.

20.8.1

Use correct gevent uri/option for Odoo 16+.

20.8.0

docker_dev_start: create database when it does not exists (avoid issue with anomization when creating new databases)

20.7.1

Fix typing error.

20.7.0

Change python_packages keys to allow several mount point and targets in the same package).

20.7.0

Enable cache for pip for dev packages.

20.6.0

docker_dev_start:

  • add werzeug in odoo 15+ to the automatically enabled dev options

20.5.1

docker_dev_start: Fix path for volumes.

20.5.0

Allow setting db_user, db_password, log_handler and pythondevmode in a global settings file (${XDG_CONFIG_HOME-$HOME/.config}/odoo_scripts/config.toml). Configuration can be done by odoo_type too.

Detect missing package when preparing to build the image.

20.4.0

When copying python packages to build the image, use hg archive rather than rsync.

docker_dev_start: Add option to activate S3 storage for attachments (requires the s3_attachment_storage module to be installed to work)

20.3.1

Add missing common shell script.

20.3.0

docker_dev_start:

  • Clearer message for missing redner image name.
  • Improve version string: include next version and topic for mercurial super projects.

run_tests: exclude all manifest from coverage, previous exclusion did not apply for installable modules.

Rename do_tests shell script so that it is installed, the console script was shadowing it.

20.2.0

docker_build_copy: when not in CI, default to copying packages and let the package be build in the image.

docker_black: also indicate version before running the command.

20.1.0

docker_dev_start: Add ability to run a redis container.

20.0.1

Fix getting the redner api key when starting it for Odoo.

20.0.0

Support for Odoo 16.0 super project: add new python_packages configuration key.

Install shell scripts too.

19.1.0

Support Odoo 14.

19.0.2

docker_dev_start: Change how odoo sources is mounted in the image. It leaves the installed module path alone and also avoids ending up with empty directory in the odoo clone’s odoo/addons directory.

19.0.1

import base import: match only the start of the version, in case the git hash is present in the version string.

19.0.0

docker_black: on Odoo 11 projects, force the line length to 79.

18.1.0

Add pylint output format option and default to a colorized output.

Do not run coverage when giving odoo test tags.

18.0.1

Fix coverage in Odoo 16 image.

18.0.0

Add compatibility with Odoo 16.

17.1.0

do_tests and docker_dev_start: add --test-tags option that passes information to Odoo

17.0.0

Changes to docker_isort so that it can be used to apply changes.

Compatibility with long polling.

Extract version number with setuptools-scm.

Update to use only pyproject.toml and remove setup.py, indicating to use pip 10.0+ to install.

Add tests for python 3.11.

Prettier is in Odoo 11 image, update docker_prettier accordingly.

import_base_import is a new section as the base import is broken in recent version of Odoo due to the inability to get a CRCF token.

Use mypy to check code type and help detect issues.

16.10.0

docker_doc_build: new command to build module documentation.

16.9.1

docker_pylint: fix the command in odoo 15 projects.

16.9.0

docker_dev_start: Exclude acl when restoring.

16.8.2

Fix incorrect prettier and black warning.

16.8.1

Stop tagging with tip.

16.8.0

Prettier for odoo 11.

16.7.3

docker_dev_start: Fix restoring database and applying script.

16.7.2

docker_dev_start: Fix --start-redner

16.7.1

Fix incorrect permissions on /var/lib/odoo. It is now handled correctly both at creation or when using the --chown flag.

16.7.0

Add command to run a redner for a project, from docker_dev_start or directly with docker_redner.

Fix issue with volume being created at each docker_dev_start run.

Make docker_pylint work on Odoo 11 projects that uses python3.8.

Detect import errors in run_tests.

Add option to disable PYTHONDEVMODE.

16.6.0

docker_dev_start: Set the VERSION and SENTRY_RELEASE environment variable. Useful when there is a module displaying their value.

odoorpc merged a fix for the python 3.10 compatibility, so update the requirements accordingly.

Set PYTHONDEVMODE when in dev mode. This will only be used with 3.7 python to display some additional messages. See https://docs.python.org/3/library/devmode.html#devmode

16.5.1

Avoid trying to set db_host with an empty value. 16.5.0 ------

Fix path used when running chown in the image, it was using /var/lib/odoo which is not where the data is present when running.

When running tests, only install modules that are not going to be tested. Modules to be tested will be installed during the tests.

16.4.0

When creating the data volume to store session and filestore, also run chown on them avoiding to have to do it manually.

16.3.0

Also mount songs when running pylint with docker_pylint.

16.2.0

Change back option in do_tests to keep the same comportment as in version <16.0.0. Override of module_list from configuration file is a new option.

16.1.0

Shell script: avoid running tests if there is no module to test.

Fix using do_tests as adding the --without-demo with any value breaks odoo 13.0 tests.

16.0.0

Support marabunta that is in the images.

Marabunta is not run when using do_tests.

Change how the tests are run with do_tests: modules not to be tested are installed, then modules to test are installed with test enabled. This fix the issues of installation tests that were not run previously.

15.3.1

Fix pyproject.toml so that the project can be installed.

15.3.0

Add docker_black to run black on a directory using the project image. Black must be present in that image.

15.2.1

Fix prettier volume mount mode; that prevented from writing changes.

15.2.0

Add chown option to do_tests.

Add populate options to docker_dev_start.

Add docker_prettier.

Add odoo_conf_inject_env_var entry point.

15.1.0

Also do branch coverage when doing coverage.

Better output of odoo 15 tests with run_tests shell script.

Fix chown of extra directories.

15.0.0

Odoo 15 compatibility.

Explicitly disable base import with version it is not tested (it did not work with 13.0 anyway).

Use black default line length.

Change isort options to be able to show differences.

Use the presence of a Dockerfile as a sign that the current directory is a super project. Avoids starting to create files by error.

Add new command and flags to run pylint on some modules.

Fix conf2reST.

14.0.0

Allow not setting the database owner in do_tests.

Remove static image support.

docker_build also tag with any current tag if any.

import_jsonrpc: Add --allow-import-errors & --allow-missing-refs to log warnings without blocking errors.

import_jsonrpc: More lenient float parsing - handle commas / dots / nbspaces.

13.3.0

Sort subdirectories when importing files. This was supposed to be the case but was not done correctly.

13.2.0

Do not require odoorpc that works with python 3.10, just be aware that you need to use the one from requirements if you want python 3.10 compatibility.

13.1.0

Add a handy method in odoo.py when writing scripts.

13.0.0

Update odoorpc required version to one including the fix for python 3.10.

12.0.1

Do not use python 3.10 as odoorpc is not compatible with this version.

12.0.0

Default to not doing flake8 and isort in do_tests.

11.1.0

Add the possibility to indicate a different path for the copied sources.

11.0.1

Fix reading other sources from setup, it was only accepting directories.

Password in imports and odoo scripts is not mandatory anymore, if not provided, it will be asked by using getpass.

11.0.0

docker_build_copy: Add the copy of setup files in directory odoo_setup so that they can be added to the Docker images of each projects.

10.0.1

Fix setting default developer mode.

10.0.0

Add option to include custom developer mode. Default is still to use reload and pdb. To use ipdb, use --dev-opt ipdb instead of --ipdb.

docker_dev_start chown option also chown the content of /var/lib/odoo for recent Odoo.

9.0.1

Run chown in odoo as root.

9.0.0

Add install option to do_tests, allowing to override installed modules.

Fix issues with documentation generation (incompatibility with expand)

Changed following base image changes.

Make start-py3o option work again.

Odoo 13 set not null errors when testing are ignored the same way it was in other versions.

8.0.1

Fix nested blacklisting.

8.0.0

flake8 and isort are not run by default when running docker_dev_start.

do_tests.py: Do not crash when super project has an hyphen in its name.

import_* follow symlinks.

✨ allow nested blacklisting: For example, allow ignoring odoo-mint/theme when expanding odoo-mint-hr.

🔨 Change list_modules command to output in the console when used.

Handle option --odoo-sources in odoo 13.

🚑 avoid error on warning.out

7.0.5

Clarify chown message.

Fix issue when trying to build an image using python 3.5 with development tools.

7.0.4

Fix copy of modules static with core in its path.

Push image to our registry too.

More options can be expanded.

Fix reading configuration value in python 2.7.

Fix reading odoo_type when using expansion.

7.0.3

Omit Odoo manifests from coverage.

Fix copy of modules with core in its path.

7.0.2

Fix colors of passing/failures in run_tests.

7.0.1

Also add expanding in shell scripts.

7.0.0

Rewrote expanding to allow blacklisting. It should be simpler to add new options.

6.0.0

Change to how output is colorized in shell scripts.

Add .expand to several options so that a super project can reuse other super projects.

Fix --odoo-help in docker_dev_start to avoid requiring a database.

5.0.0

Use semver.

docker_dev_start and do_tests: use socket when starting postgresql rather than a port that might be used on the host.

docker_dev_start stops doing systematic chown on the content of /mnt in the container. The argument --chown can be used to do that. This was needed when the odoo user changed in an image, a rare occurence.

Add :ref:`docker_pg.py` command to start postgres like :ref:`docker_dev_start.py` does when using --start-postgresql, but without starting odoo.

4.2.1

Disable test, meaning that import_base_import does not work in odoo 13.

4.2

Adapt import scripts to odoo 13. import_base_import does not work in this version yet.

Fix missing PyYAML dependency.

Colored logs.

Docker calls are now done with the API rather than with subprocesses.

:file:`isort` shell script has been removed, it is now available as a python 3 script :ref:`docker_isort`.

Logging default is now the info level. Use -q/--quiet to decrease verbosity.

4.1

Shell scripts stop assuming that they are in a directory inside the superproject, but assume they are called from the superproject directory instead.

Improve documentation generation.

Fix issue with pg.extensions key in config file.

Fix issue with flake8 call not using :file:`setup.cfg` preferences; it was called from another directory.

Default to pdb with pdb++ instead of ipdb. New option --ipdb to run ipdb instead if wanted.

docker_dev_start: add argument to run SQL script after eventual restauration but before starting the server.

4.0

Change how documentation is generated, and do not exit with an error code on module generation errors.

3.3

Do not include CI files when duplicating sources.

Expose logging_from_verbose.

Change failure and error detection in run_tests.

run_tests: Add metrics when running in CI.

3.2

Changed several shell scripts to python 3 scripts.

3.1

Add odoo 13.

Add ODOO_ADDONS_PATH env var to start.

Add import_sql script.

Add option to bind odoo sources in the image:

  • update_duplicate_sources now relies on the metaproject clone URL instead of its directory name. Works fine with the bitbucket.org ➔ orus.io move.

3.0

Script uses python 3.

2.20

  • start locale py3o stack with docker_dev_start.py (when report_py3o_fusion_server is in module list).

2.19

  • remove references to addon_dirs, use module instead.

2.11

  • create_documentation: Fix paths of per-module documentation.
  • Support Odoo 10 ("odoo-bin" instead of "openerp-server").

2.10

Add script to duplicate code on another repository.

2.9

  • conf2reST.py: Prefer anonymous links to avoid conflicts when the same version is shared by 2 repos (as the "link target" system would then be in use).

2.8

  • add script to create archive of source
  • create_documentation: only create documentation for used modules, reusing the setup.cfg key defined for create_archive if it is present
  • docker_build: copy modules (defined in setup.cfg in superproject to a new directory for docker to do)

2.7

Add conf2reST.py script.

2.0

Read module_list, module_list_test, addon_dirs and odoo_type from setup.cfg instead of directories

1.0

Initial version