Release Notes
Release 1.6.2
Added
Release 1.6.1 (2024-12-16)
Fixed
- Fix rewrite of "psycopg2 -> psycopg2-binary" in setup.py
Release 1.6.0 (2024-12-15)
Added
- Experimental support for Odoo 18
Release 1.5.1 (2024-04-01)
Fixed
- Install lxml less then 5.0.0, that is supported by Odoo.
Release 1.5.0 (2023-11-16)
Added
- Experimental support of Odoo 17.0
Release 1.4.0 (2023-11-08)
Added
- New option
--enforce-bumptoodoo-helper ci fix-versionsandodoo-helper ci check-versionscommands.
Changed
- Changed default installed version of wkhtmltopdf to 0.12.6.1 r3. Thus it have to be working on Ubuntu 22.04+
Release 1.3.0 (2023-03-28)
Added
- Added new option
--no-fetchto cmdodoo-helper linkthat allows to disable fetching repositories (fromodoo_requirements.txtandoca_dependencies.txt)
Changed
- Automatically apply patch to run tours on Chrome 111 for Odoo 12.
See details:
- https://github.com/odoo/odoo/pull/114930
- https://github.com/odoo/odoo/pull/115782
Fixed
- Force link modules during migration tests
Release 1.2.0 (2023-02-11)
Added
- Added
-tshortcut for--create-test-dboption ofodoo-helper testcommand
Release 1.1.0 (2023-01-23)
Added
--migration-start-refoption toodoo-helper testcommand, that allows to specify the starting point for migration test.
Fixed
- Incorrect handling of running lodoo with different user. Now this have to be fixed.
Release 1.0.1 (2023-01-10)
Fixed
- Command
ci push-changesnow will set correct push URL. This was breaked 0.13.0 release.
Release 1.0.0 (2023-01-08)
Added
- Added new option
--no-drop-dbtoodoo-helper testcommand. This option could be used to tell odoo-helper to not drop temporary test database. Especially, this is useful for migration testing to check the state of database after migration. - Added new option
--sys--depstoodoo-installcommand. This opt allows to automatically install system dependencies whe installing odoo, but requires sudo.
Changed
- Removed overwrites for dependencies for pyopenssl and cryptography, because they are fixed on odoo side now.
- Use LOdoo as separate python package.
Note: This change may be backward incompatible. So,
it is possible, that after update you will need to run command
odoo-helper install py-prerequirements - Added safeguard preventing running installation of odoo as root user. This is needed to warn users, that this script is not designed to install production-ready instances, and it is focused on developers to help them to manage multiple local installations of Odoo. For production-ready installation CR&D Deploy script have to be used. It will automatically install odoo-helper and configure everything in right way.
- Automatically install
python2-setuptools-whlpackage, when installing python2 support.
Release 0.16.0 (2022-11-18)
Added
- Automatic replace of
@t-rawto@t-outin.xmlfiles during forwardport - Added separate command for automatic module migrate
odoo-helper ci auto-migrate-modulesthat will try to automatically migrate module code to current odoo version. Currently it can do only simple find-and-replace via regex. - Added ability to run migration tests with single command, by adding new
options to
odoo-helper testcommand:--migration- run migration tests--migration-repo- specify repo to test
Fixes
- support for Odoo 16.0
Release 0.15.0 (2022-10-25)
Added
- Added new options to
fetchcommand:--git-single-branchcould be used to clone repos with single branch options--git-depth-1could be used to clone repos with option--depth=1
- Experimental support of Odoo 16.0
Fixes
flake8-colorsnot needed anymore, as flake8 support color output byt default.- Limit version of
pylint-odooto less then 8.0 for backward compatibility. This is done because OCA remove a large part of functionality in 8.0. See merge request: https://github.com/OCA/pylint-odoo/pull/396
Release 0.14.1 (2022-09-09)
Fixes
- Require "pyopenssl>=21.0.0" during odoo install to make odoo 15 work on ubuntu:20.04
Release 0.14.0 (2022-08-16)
Added
- Ability to automatically detect python for Odoo version via following options:
odoo-helper install reinstall-venv --build-python autoodoo-install --build-python auto
- Ability to automatically build python for odoo version only if system python do not satisfy odoo requirements.
For this reasone new option was added to following commands:
odoo-helper install reinstall-venv --build-python-if-neededodoo-install --build-python-if-needed
- Add ability to enforce
odoo-helper fetchclone repos with--single-branchoptions. This feature could be enabled via environment variableODOO_HELPER_FETCH_GIT_SINGLE_BRANCH. This feature could be useful to reduce size of cloned repositories. - Added ability to automatically update odoo-helper-scripts installed via debian package.
Changed
- On module migration (during forwardport) automatically replace
related_sudo=tocompute_sudofor field definitions.
Deprecations
- Option
odoo-install --openupgradeis deprecated. It will raise error for odoo 14.0+. Starting from Odoo 14.0, openupgrade uses separate odoo addons to store migrations, instead of full copy of odoo.
Release 0.13.0 (2022-06-25)
Changed
- Updated minimal version for setuptools for odoo to be greater or equal to 45 and less than 58
Release 0.13.0 (2022-06-25)
Added
- Short version of
--migrate-modulesoption toodoo-helper ci do-forwardport:--mm. So, now forwardport command could look like:odoo-helper ci do-forward-port -s 12.0 --mm - Automatically detect
.jslintrcplaced in repo root directory. If found, then apply it to pylint by default. - Added shortcut for
odoo-helper fix-versions-odoo-helper fix-version - Added option
--tdbtoodoo-helper odoo recomputecommand - Added new option
--no-backuptoodoo-helper install reinstall-odoo - On module migration automatically replace
phantom_js(tobrowser_js(. - Added new option
--if-not-existstoodoo-helper db createcommand - Added new command
odoo-helper postgres wait-availabilitythat allows to wait while postgres will be started and ready. This command could be useful for docker containers
Changed
- Install LTS version of nodejs by default. In previous version latest stable version was installed by default.
- openupgradelib now will be downloaded from pypi. It seems that now relevant versions of this lib are published on pypi
- Simplify installation for debian-like systems: automatically install preprequirements
- Python2 support is now installed only for Odoo 10.0 and below.
- Do not use fallback packages when installing wkhtmltopdf. By default install wkhtml to pdf from wkhtmltopdf releases only fore supported releases. Otherwise, user have to manually choose if he needs to try fallback repo or install system's wkhtmltopdf.
Release 0.12.1 (2021-10-25)
- Fixed:
libmagic1added to system pre-requirements
Release 0.12.0 (2021-10-25)
Added
- Optionally, install py dependencies defined in
requirements.auto.txtfile duting linking addons. This may be used to handle auto-generated requirements by tools like Yodoo Cockpit. This feature have to be enabled by setting environment variableODOO_HELPER_FETCH_PIP_AUTO_REQUIREMENTSto non-zero value. If you want to enable this feature on permanent basis, then you can place this var to odoo-helper's project-level or global config file. - Added experimental support for automatic discover of python dependencies defined in addon's manifest during addon linking process.
- Try to automatically detect config for linters, if it is placed in root of repository and if linter invoked inside this repo.
Available linter config file names are:
flake8.cfgpylint_odoo.cfgstylelint-default.jsonstylelint-default-less.jsonstylelint-default-scss.json
- Added new opt
--upgradetoodoo-helper install py-toolsandodoo-helper install dev-toolscommands - Added new opt
--updatetoodoo-helper install js-tools - Added new opts to
odoo-helper db createcommand:--tdb- create test database with auto-generated name--name <name>- allows to specify name of database as option
- Experimental support of Odoo 15.0
- Added new options to
odoo-installandodoo-helper install reinstall-venvthat influence on building python:--build-python-optimize: enable expensive, stable optimizations (PGO, etc.)--build-python-sqlite3: support loadable extensions in_sqlitemodule
- Added new option to
odoo-installcommand:--enable-unbuffer. This option enables usage ofunbuffercommand, to make output of test logs colored. - Added new option to
odoo-installcommand--devthat will automatically install dev tools after odoo installation. - Added short versions of options to
odoo-helper fix-versionscommand:-pfor patch version fix-mfor minor version fix-Mfor major version fix
Changed
- Changed signature of
odoo-helper linkcommand. Seeodoo-helper link --helpfor more info. - Automatically install
python-magicpackage during odoo installation. - Use another config for
stylelintforscssfiles. This was done, becausestylelintstarted throwing errors, when parsingscssfiles in standard way, so it was desided to update use specific config for style lint with this update.
Removed
odoo-helper pip --ocaoption support. There is no sense to use this option anymore, because all OCA apps now published on standard PyPI.
Release 0.11.0 (2021-09-17)
Added
- Added new module migration for version 14.0:
- automatically replace
track_visibility='...'totracking=True
- automatically replace
- Added new shortcuts:
odoo-helper addin-odoo-helper addons installodoo-helper addup-odoo-helper addons update
- Added new command:
odoo-helper install py-prerequirementsthat could be used to install or update project-level python dependencies needed by odoo-helper
Changed
- Command
odoo-helper install js-toolsnow will also installstylelint-config-sass-guidelinespackage, that could be used as config for linter for sass file (*.scss)
Fixed
odoo-helper odoo clean-compiled-assetsnow will clean up dev-mode CSS files generated from SCSS and LESS files.- Fixed odoo installation. New setuptools has dropt support of
use_2to3build param, so odoo helper will enforce setup tools less then version 58 to make odoo installable.
Deprecation
- Support for Odoo 10 and below is now deprecated and will be removed in one of next releases. The python2 support is over, and there is no sense to continues to support odoo versions, that rely on unsupported python versions.
Release 0.10.0 (2021-06-22)
Added
- Added ability to use project-level (odoo-helper project-level) configs for tools (linters). Just place correct config file on conf dir of your odoo-helper project.
- Pylint, handle following additional warnings:
- undefined-variable - E0602
- signature-differs - W0222
- inconsistent-return-statements - R1710
- no-else-continue - R1724
- Added option
--create-db-usertoodoo-installcommand, that allows to create postgresql user for installation automatically. - Added new option
--formatto commanddoc-utils addons-graph. So, now it is possible to specify output format for result graph - Added new option
--no-restarttoodoo-helper update-odoocommand - Added ability to build custom (non-system) python when installing odoo.
Use option like
--build-python 3.8.0in commandodoo-installto use custom python version - Added ability to build custom (non-system) python when reinstalling venv
- Added new shortut
odoo-helper ualtoodoo-helper addons update-list - Added experimental option
--migrate-modulestoodoo-helper ci do-forwardportcommand
Changed
- Fail tests on warning:
- The group defined in view does not exist!
- inconsistent
compute_sudofor computed fields
- Forwardport migrations during forwardport by default.
odoo-helper update-odoonow will restart server automatically (stop server before update and start server after)
Deprecated
- Support for Odoo 10 and below is now deprecated and will be removed in one of next releases. The python2 support is over, and there is no sense to continues to support odoo versions, that rely on unsupported python versions.
Release 0.9.0 (2021-03-06)
Added
- New options for
odoo-helper testcommand:--test-db-namethat allows to specify name of test db to use to run tests--coverage-html-viewthat will automatically open coverage report in browser when tests completed
- Added new option
--fmor--forward-migrationtoodoo-helper ci do-forwardportcommand, that will automatically forwardport migrations to next serie. Currently it just renames migration files. - Added new opts to
odoo-helper ci check-versions-gitcommand:--fix-version-minorthat could be used to increase minor part of version number in changed modules--fix-version-majorthat could be used to increase major part of version number in changed modules
- Added new cmd
odoo-helper ci fix-versionsthat could be used to fix version number in changed modules - Added new shortcut to run version fix:
odoo-helper fix-versions
Changed
odoo-helper ci do-forwardportnow can automatically add manifests with fixed versions to index (if there are no other conflicts)odoo-helper ci check-versions-gitargumentrepois now optional, and by default, it assumes that repo path is current working directory, unless repo path is not specified explicitly
Release 0.8.0 (2020-12-22)
Added
- Aliase
odoo-helper addons linkthat is same asodoo-helper link - Aliase
odoo-helper addons testthat is same asodoo-helper test - Added support for Odoo 14.0 (experimental)
- Added option
--pot-updatetoodoo-helper tr regeneratecommand, that will automatically update translations according to .pot files - Added option
--installabletodoc-utils addons-listcommand - Added command
odoo-helper doc-utils addons-graphthat could be used to build dependency graph for all addons in specified directory. - Added option
--show-log-on-errorforodoo-helper addons install|updatecommands.
Changed
- Fail tests on
Comparing apples and orangeswarning - Command
odoo-helper ci check-versions-gitnow simplified and coulde be called with only single argument - path to repository
Removed
- Removed command
odoo-helper db dump - Removed support for clonning Hg repositories
- Drop support for Ubuntu 16.04: odoo-helper have to be working there still, but without warranty.
Release 0.7.0 (2020-08-17)
Added
- Added
--recursiveoption toodoo-helper doc-utils addons-listcommand - Added
--tmp-diroption to odoo-helper's database backup/restore commands - Added
--node-versionoption toodoo-installand toodoo-helper install reinstall-venvcommands - Added
--coverage-ignore-errorsoption toodoo-helper testcommand - Added ability to install addons via
odoo-helper installcommand - Added option
--alltoodoo-helper odoo clean-compiled-assets, that could be used to clean assets for all databases - Added
--install-diroption toodoo-helper db createcommand. This option allows to automatically install all addons from specified directory after creation of database. - Added new shortcuts:
odoo-helper lsa->odoo-helper addons listodoo-helper lsd->odoo-helper db list
- Added help message for
odoo-helper addons update-py-depscommand. - Added command
odoo-helper db dump-manifest <dbname>that allows to generate manifest for database backups. Could be used with external backup tools. - Added command
odoo-helper postgres pg_dump - Added option
odoo-helper addons update --skip-errorsthat allows to continue update event if there was error caught on update of single db, thus now it is possible to update all databases and show list of databases, that produced error in the end of operation - Added command
odoo-helper ci push-changes(experimental stage) - Added command
odoo-helper ci do-forward-port(experimental stage) - Added option
--coverage-html-dirtoodoo-helper testcommand. - Added hints where to view html coverage report after tests
- Added option
--missing-onlyto commandtr regenerateandtr export. So now it is possible to generate/regenerate only missing translations for addons. - Added command
tr generate-potto generate .pot files - Added option
tr regenerate --pot-remove-datesto remove dates from generated pot files.
Changed
- Refactored
odoo-helper update-sourcescommand:- add help message
- if
ODOO_REPOspecified, try to download archive from this repo - if
ODOO_DOWNLOAD_SOURCE_LINKspecified, then use it to download Odoo archive
odoo-helper browsenow will start server automatically if it is not started yetodoo-helper postgres user-createif password not privided, then useodooas password.- Fail
odoo-helepr testif there is attempt to write/create with unknown fields - Fail
odoo-helper testif there was error/warning while loading demo data odoo-helper db backuprefactored to avoidbase64encoding / decoding. Additionally now it uses streams to dump file, so it have to be more memory friendly.odoo-helper tr regeneratecommand can now regenerate translations for multiple languages via single run. Also, it is possible to regenerate.potfiles in same run.- Disable sentry on database operations.
- Automatically replace
psycopg2requirement withpsycopg2-binary. - Updated version of bundled virtualenv to 16.7.9
Deprecated
odoo-helper db dumpnow deprecated.
Release 0.6.0 (2020-01-28)
Added
odoo-helper install py-toolsnow also installs jingtrang. This tools is used to show better warning on parsing xml views- Added option
--potforodoo-helper tr regeneratethat allows to regenerate.potfiles on modules - Added option
--fix-version-fptoci check-versions-gitcommand. This command allows to fix version numbers during forwardport changes from older version of Odoo to newer - Added option
--fix-serietoci check-versions-gitcommand. - Added command
odoo-helper odoo recompute-menu - Added command
odoo-helper odoo clean-compiled-assets - Added
--no-backupoption toodoo-helper install reinstall-venvcommand - Added
--custom-valoption toodoo-helper doc-utils addons-listcommand - Added
odoo-helper pythoncommand - Added
odoo-helper ipythoncommand - just a fast way to install and run ipython - Added
odoo-helper postgres locks-infocommand - Added
--http-hostoption forodoo-installcommand
Changed
- Enabled following warings in defaut pylint config:
- trailing-newlines
- wrong-import-order
- no-else-raise
- consider-using-in
- relative-beyond-top-level
- useless-object-inheritance
- duplicate-except
- trailing-whitespace
- self-cls-assignment
- consider-using-get
- consider-using-set-comprehension
- consider-using-dict-comprehension
- unnecessary-semicolon
- singleton-comparison
- unneeded-not
- too-many-nested-blocks
- logging-too-many-args
- redundant-unittest-assert
- implicit-str-concat-in-sequence
- simplifiable-if-expression
- lost-exception
- useless-return
- global-statement
- too-many-boolean-expressions
- empty-docstring
- try-except-raise
- Command
odoo-helper db dropchanged:- config file now is option (befor it was positional argument)
- added ability to drop multiple databases at single call
- Run
odoo-helper odoo shellwith implicit--no-httpoption, to avoid conflicts with running odoo
Fixed
- Fixed
--fix-versionoption ofodoo-helper ci check-versions-gitcommand. Before this fix, only Odoo serie was updated. After this fix, version number updated too. - Compatability fix for
odoo-helper tr ratecommand with Odoo 13.0 - Load server-wide modules when interacting via lodoo (local odoo)
- Improve the way to run odoo with server users, to avoid loosing environment variables.
Release 0.5.0 (2019-09-01)
Added
- Added command
odoo-helper install dev-toolsthat is just an alias to install bin-tools, py-tools and js-tools with single command. - Param
--dbtoodoo-helper addons find-installedto search for addons only in specified databases. - Option
--coverage-fail-undertoodoo-helper testcommand - Option
--skip-retoodoo-helper testcommand - Option
--except-filtertoodoo-helper addons listcommand - Command
odoo-helper ci ensure-changelog - Command
odoo-helper install unoconv - Command
odoo-helper install openupgradelib - Shortcuts of
odoo-installcommand:--ocb- use OCB (Odoo Community Backports) repo.--openupgrade- use Open Upgrade repo.
- Extra options to command
odoo-helper db create:--passwordset password to database user--countrycountry code to create db for
- Extra option to
odoo-installcommand--http-portspecify port for this odoo instance
- New option
--no-unbufferthat is helpful to runodoo shellcommand (odoo-helper server run --no-unbuffer -- shell -d my-database-name) - New
odoo-helper odoo shellcommand - New option
--installor-itoodoo-helper db createcommand designed to automatically install specified addons after db created. - New option
--timeforodoo-helper testcommand - New option
--no-single-branchtoodoo-installcommand
Changed
odoo-helper fetchrefactored. Changed path repository is stored at. Before this release, all fetched repositories were stored at/reppositories/directory. After this release new fetched repositories will be stored on path similar to their path on github. For example there is repositoryhttps://github.com/crnd-inc/crnd-web. Before this release this repository was saved at/repositories/crnd-webafter this release, repository will be stored at/repositories/crnd-inc/crnd-web. This change have to be backward compatible, but be careful.- Use default database backup format: zip
- Enabled following warings in defaut pylint config:
- trailing-comma-tuple
- deprecated-method
- Following DB-related commands changed to have
--helpoption. This change is backward incompatible. Commands:odoo-helper db dump --helpodoo-helper db backup --helpodoo-helper db backup-all --helpodoo-helper db restore --help
- Command 'odoo-helper db list' now ignores
list_dbsetting
Fixed
- bug when "odoo-helper test" does not receive --skip argument
- regression of "odoo-helper addons uninstall" command.
- regression of "odoo-helper install wkhtmltopdf" command.
- bug in "odoo-helper odoo-py" command (related to usage of unbuffer)
- install specific version of
lessc: 3.9.0 (version 3.10.0 seems to be buggy)
Migration notes
New repository layout
Migrating to new repository layout could be done by following alogorithm:
# change working directory to odoo-project rool and save all repositories in
# requirements file
odoo-helper addons generate-requirements > odoo-requirements-tmp.txt
# Rename your current repository directory and create new empty 'repositories' dir
# This is required to save your current repositories state in case of uncommited changes.
mv repositories repositories-backup
mkdir repositories
# Fetch all your repositories with new layout enabled
odoo-helper fetch --requirements odoo-requirements-tmp.txt
# remove temporary requirements file
rm odoo-requirements-tmp.txt
Release 0.4.0 (2019-05-03)
Added
- Added command odoo-helper addons find-installed. Scan all databases for installed addons.
- Added aliases (shortcuts):
odoo-helper-linkodoo-helper-addons-update
- Experimental option
odoo-helper fetch --odoo-app <app_name>that will automatically download module from Odoo Market - Added option to
odoo-helper odoo recompute --db- same as
-dand--dbname
- same as
- Added command
odoo-helper db is-demoto check if database contains demo-data
Fixed
- Fixed bug with install/update addons via
odoo-helper addons installandodoo-helper addons updatecommands, when addons were always installed with demo-data. This happened, because we have to explicitly tell Odoo that we do not need to install demo-data.
Changed
- Changed
odoo-helper pull-updatescommand- Now it does not update addons list automatically
- Added
--ualoption to update addons list - Added
--do-updateoption to update addons just after pull - Added
--helpoptions - First positional argument not applicable for it.
Added option
--addons-dirinstead .
- Refactored
odoo-helper lint pylintcommandconsider-using-ternarywarning enabled by defaultunused-importwarning enabled by default
- Default timeouts for
wgetincreased2->15to be able to download Odoo via low-speed networks - Changed bundled virtualenv version to
16.4.3 - Command
odoo-helper ci check-versions-gitwill ignore addons that are not installable.
Removed
odoo-helper test pylintcommand removed. Useodoo-helper lint pylintodoo-helper test flake8command removed. Useodoo-helper lint flake8
Deprecations
- Command
odoo-helper generate-requirementsdeprecated. Useodoo-helper addons generate-requirements
Release 0.3.0 (2019-02-04)
Added
- Added
--fix-versionoption toodoo-helper ci check-versions-gitcommand - Added ability to pass list of addons to
odoo-helper testcommand without need to prefix each addon with-m. Now it could be done like:odoo-helper test my_addon1 my_addon2 - Added
--skipoption ofodoo-helper testcommand - Added
odoo-helper db copycommand
Fixed
- running
odoo-helper trcommand will not overwritepidfile
Changed
- Last argument of
odoo-helper ci check-versions-gitnow optional. If it is omited, than current working tree state will be used as last revision. - Use own copy of virtualenv, to avoid installing it in system. virtualenv is bundled into odoo-helper as git submodule now.
Removed
- Removed support of Odoo 7.0. Now minimal supported Odoo version is 8.0
- Removed
odoo-helper server auto-updatecommand that was deprecated in previous version - Removed
-pand--pythonoptions forodoo-helper fetchcommand - Removed
-pand--pythonoptions forodoo_requirements.txtfile
Release 0.2.0 (2018-12-20)
Added
- New
--coloroption toodoo-helper addons listcommand. At this time this option colors output by following rules:- green - addon is linked to custom addons
- red - addons is not present in custom addons
- yellow - addons is present in custom addon, but link point's to another place
- New
--not-linkedoption toodoo-helper addons listcommand - New
--linkedoption toodoo-helper addons listcommand - New
--filteroption toodoo-helper addons listcommand - New
odoo-helper odoo server-urlcommand - New
odoo-helper system is-projectcommand - New
odoo-helper system get-venv-dircommand - New options to
odoo-helper addons update/install/uninstallcommands--tdbor--test-dbuse test database--cdbor--conf-dbuse default database from odoo config-mor--module. Option is added to be consistend withodoo-helper testcommand, which used this toption to specify addons (modules) to be tested--ual- Update Apps List. When this option is specified, apps (addons) list will be updated before install/update/uninstall addonall- install or update all addons. Does not work for uninstall.
- Shortcut
odoo-helper psqlforodoo-helper postgres psqlcommand - Shortcut
odoo-helper psforodoo-helper server ps - Alias to
--versionoption -version:odoo-helper version - New options for
odoo-helper server runcommand--coverage: run with code coverage enabled--test-conf: run with test configuratuon--help: show help message--: options delimiter - all options after this will be passed directly to Odoo
- Help message and new options to
odoo-helper db dropcommand- option
-qor--quiteto hide messages produced by this command
- option
- Added help messages for commands:
odoo-helper install pre-requirementsodoo-helper install sys-depsodoo-helper install py-depsodoo-helper install py-toolsodoo-helper install js-toolsodoo-helper install bin-toolsodoo-helper install postgresodoo-helper install reinstall-odooodoo-helper install reinstall-venv
- New options to
odoo-installcommand--git- shortcut for--download-archive off--archive- shortcut for--download-archive on
- New command
odoo-helper postgres stat-connections - New shortcut
odoo-helper pgforodoo-helper postgres - New command
odoo-helper git changed-addonsthat displays list of addons that have been changed between two specified git revisions - New command
odoo-helper ci check-versions-git. The goal of this command is to be sure that addon version number was updated. - New command
odoo-helper ci ensure-icons. Ensure that all addons in specified directory have icons. - New option
--ualforodoo-helper linkcommand. - New command
odoo-helper browsethat opens running odoo instance in webbrowser - Experimental support of Odoo 12.0
- Added colors to
odoo-helper tr ratecommand output - Added option
--recreatetoodoo-helper db createcommand. If database with such name already exists, then it will be dropt before creation of new database. - Added special option
--dependenciestoodoo-helper doc-utils addons-listcommand - Install websocket-client
during
py-toolsinstall to run test tours in Odoo 12+ - Install
chromium-browserdurinbin-toolsinstall. It is requird to run tests in Odoo 12+
Fix
odoo-helper addons listbugfix--recursiveoption: forward options to recursive callsodoo-helper db dropcheck result of drop function, and if it is False then failodoo-helper install reinstall-versionshow correct help message and added ability to specify python version to be used for new virtualenv
Changed
odoo-helper addons listwill search for addons in current directory if addons path is not specifiedodoo-helper addons update-listpossible options and arguments changed- Before
- first argument is database name and second is config file. last one wasn't used a lot
- if no arguments supplied then update addons list for all databases
- After
- added
--helpoption - added
--tdbor--test-dboption to use test database - added
--cdbor--conf-dboption to use database specified in default odoo config - all arguments are considered as database names. This allows us to keep partial backward compatability
- added
- Before
odoo-installnow will automaticaly install phonenumbers python package.- display commit date in output of
odoo-helper --version odoo-helper postgres speedifyuse SQLALTER SYSTEMinstead of modifiying postgresql config fileodoo-helper lint stylenow have separate configs for .css, .less, .scss. The only differece is that .less and .scss configs have default indentation set to 4 spaces and .css config have default indentation set to 2 spacesodoo-helper lint stylestatus changed from experimental to alphaodoo-helper test- use default test database named
<dbuser>-odoo-test - created temporary databases are prefixed with
test-
- use default test database named
odoo-installdo not set automaticallydb_filteranddb_namefor test config fileodoo-helper tr rateif there is no translation terms for addon compute it's rate as 100%- default flake8 config: disable W503 and W504 checks
- default pylint config:
- Add proprietary licenses to allowed licenses list
- Install newer version of wkhtmltopdf: 0.12.5
Deprecations
odoo-helper server auto-updateuse instead:odoo-helper intall reinstall-odooodoo-helper upate-odoo- Support of Odoo 7.0 is now deprecated and will be removed in one of next releases
odoo-helper fetch -pandodoo-helper fetch --pythonoptions are deprecated. Useodoo-helper pip installcommand instead. Or placerequirements.txtfile inside repository root or addon root directory.- It is not recommended now to use
db_nameanddb_filterin test config file, because, if either of them is defined, then it is not allowed to drop databases that do not matchdb_nameordb_filter
Release 0.1.6 (2018-06-04)
- Improve
odoo-helper addons update-py-depscommand, now it aloso updates repository level dependencies (those, mentioned in repository'srequirements.txt) - Added
odoo-helper doc-utilscommand. Have following subcommandsodoo-helper doc-utils addons-listcommand to print info about addons in repo in Markdown format
- Move linters to separate subcommand
odoo-helper lint. Runodoo-helper lint --helpfor details - Added
odoo-helper lint stylecommant. It is experimental integration with stylelint odoo-helper lint pylintskip addons with'installable': Falseodoo-helper lint flake8skip addons with'installable': Falseodoo-helper addons listcommand now have extra options and can search for addons in multiple paths:--installable--by-name(used by default)--by-path--recursive
odoo-helper addons (install|update|uninstall)command now have extra options--dir <addon path>and--dir-r <addon-path>which can be used to install/update/uninstall all installable addons in specified directory- Added
--dirand--dir-roptions forodoo-helper tr regenerateandodoo-helper tr ratecommands - Added
--startoption toodoo-helper addons install|update|uninstallcommand - Do not set
pidfileoption in odoo config by default. pidfile have to be managed by odoo-helper-scripts, not by Odoo. - Backward incompatible remove Mercurial
installation from
odoo-helper install py-tools, because it does not support Python3 - To be compatible with Odoo.sh-style development,
odoo-helper fetchnow recursively fetches submodules for git repositories. - Added option
--dir-r|--directory-rforodoo-helper testcommand, to recursively search for addons to be tested in specified directory - Added
--logoption for following commands:odoo-helper start --logodoo-helper restart --logodoo-helper addons install --logodoo-helper addons update --logodoo-helper addons uninstall --log
- Command
odoo-helper server log: automatically move to end of log file after open (+Gforlesscommand) - Added command
odoo-helper postgres start-activityto display running postgres connections - Added command
odoo-helper install reinstall-odooto easily spwitch betwen two installation modes:download- download Odoo source as archive (faster)clone- clone Odoo source as git repo (better handle updates, multiple remotes, multiple branches, etc).
- Show if it is Git Install in output of
odoo-helper statuscommand - Show Odoo server url in output of following command:
odoo-helper statusodoo-helper server statusodoo-helper server start
Release 0.1.5 (2018-01-12)
- Use nodeenv together with virtualenv to be able to install js dependencies in virtual environment. Examples of such dependencies are jshint that used by pylint_odoo to check javascript files and phantomjs used to run test tours.
- Added command
odoo-helper install js-tools - Added command
odoo-helper npm- shortcut to run npm for current project - Improved command
odoo-helper test pylint, now most of pylint options will be forwarded directly to pylint. wkhtmltopdfinstall refactored, added separate commandinstall wkhtmltopdf, start using wkhtmltopdf downloads from github- Autodetect python version
- Removed
odoo-install --pythonoption odoo-helper generate_requirementsrenamed toodoo-helper generate-requirementsodoo-helper update_odoorenamed toodoo-helper update-odooodoo-helper install reinstall-venvoption simplified. now it does not recieve any arguments- do not install
node-lessas system dependency odoo-helper install js-toolsautomatialy installeslintinstead ofjshintStarting from version 1.6.0 pylint_odoo useseslint- removed unuseful
odoo-install -y, it does not run apt, so there is no interactive y/n questions - pylint default config: enabled redefined-outer-name check
- experimental
odoo-helper tr ratecommand, which computes translation rate for addons. Useful in CI. - added command
odoo-helper install bin-tools - do not use OCA simple PyPI index by defautl.
So to use OCA simple PyPI index, pass --oca argument to
odoo-helper pipcommand. For example:odoo-helper --oca pip install odoo10-addon-mis-builderwill use OCA simple index. odoo-helper status: print versions of following tools used in current project.- NodeJS
- npm
- Less.JS
- Pylint
- Flake8
- ESLint
- Pylint Odoo
- Do not require erppeek. This project seems to be abandoned.
- Do not force install following python packages: six, num2words
- Python package setproctitle will be installed by
odoo-helper install py-toolscommand. (previously it was installed as python-prerequirement for Odoo) - Do not upgrade pip and setuptools when installing Odoo in fresh virtualenv, virtualenv versions >= 15.1.0 automaticaly installs last pip and setuptools, so there is not need to reinstall them
- List command
odoo-helper addons generate-requirementsin help message for addons subcommand - Bugfix in processing OCA depenencies: handle cases, when file ends without newline
Release 0.1.4 (2017-11-13)
- Added command
odoo-helper odoo - Added command
odoo-helper odoo recompute, that allows to recompute stored fields. Also this command allow to recompute parents (left/right) - Command
odoo-helper db existsnow have it's own help message - Command
odoo-helper db existsadded option-qto disable output - Added command
odoo-helper postgres speedify
Release 0.1.3 (2017-10-28)
- use codecov for code coverage
- renamed command
odoo-helper print_configtoodoo-helper print-config - Added
odoo-helper test --coverage-skip-coveredoption - Added
odoo-helper addons update-py-depscommand - Added aliase
odoo-helper-log - Added
odoo-helper postgres psqlcommand - Removed old unused options
odoo-helper --addons-dir <addons_directory>odoo-helper --downloads-dir <downloads_directory>odoo-helper --virtual-env <virtual_env_dir>odoo-helper test --tmp-dirsodoo-helper test --no-rm-tmp-dirs
Release 0.1.2 (2017-10-04)
odoo-install --pythonoption added. Now it is possible to install Odoo 11 in python3 virtual environmentodoo-installsystem dependencies reduced. Now most of python dependencies will be installed in virtualenv via pip.odoo-helper tr regeneratecommand added. This command allows to regenerate translation files for specified lang. This may be useful, if new translation terms appeared after module change.- no
_(underscore symbol) in random strings - Save Odoo repository in
odoo-helper.conf - bugfix in command:
odoo-helper odoo-py - Added option
odoo-helper test --coverage-report - Bugfix, install Pillow less than 4.0 for Odoo 7.0
- Added command
odoo-helper install py-deps <version> odoo-helper test -d .do not omit.if it is odoo addon. This happens in case ifodoo-helper testcalled when current dir is addon.odoo-helper test --recreate-dboption added. If this option passed, and test database already exists, then it will be dropt before tests started.odoo-helper trcommand: better help messages, added help messages for subcommandsodoo-helper execcommand now adds to env varsODOO_RCandOPENERP_SERVERvariables with path to project's odoo config file- Added
odoo-helper install py-toolscommand to install extra tools like pylint, flake8, ... - Added
odoo-helper server pscommand - Added more colors to odoo-helper output
- Added
odoo-helper addons uninstallcommand - Added ability to test odoo-helper-scripts on various debian-based distributions via docker
- Added
odoo-helper addons listcommand, that lists odoo-addons in specified directory - Added aliases
odoo-helper flake8andodoo-helper pylint - Added automatic configuration checks. So, when odoo-helper-scripts provides some new configuration params after update, user will be notified about them and asked to update project config file
odoo-helper scaffoldhave new features and subcommands:odoo-helper scaffold repocreate repository. place it in repo dirodoo-helper scaffold addoncreate new addon. place it in repo and automaticaly link.odoo-helper scaffold modelcreate new model in addon. (Still work in progress)
Release 0.1.1 (2017-06-08)
- Support of Odoo 10.0
- Support of setuptools-odoo
- Automaticaly install in env
- Wrap pip with automaticaly set
PIP_EXTRA_INDEX_URLenvironment variable with OCA Wheelhouse
- Added shortcut script
odoo-helper-restartto restart server. - Added
odoo-helper db renamecommand - Added
odoo-helper install reinstall-venvoption odoo-helper test: Test only installable addonsodoo-helper addons update-listcommand support odoo 7.0odoo-helper addons test-installedcommand support odoo 7.0odoo-helper fetch: added experimental support of Mercurialodoo-helper test --coverage-htmloption added.odoo-helper db createnew options added:--demoload demo data (default: not load)--lang <langchoose language of database--helpdisplay help message
odoo-install --single-branchoption added. This allow to disablesingle-branchclone.- Added
pychartfor installpychartpackage is broken on pypi, so replace it with Python-Chart
Release 0.1.0 (2017-03-06)
- Added
odoo-helper addons pull_updatescommand - Added basic support of Odoo 10
- Added
odoo-helper --versioncommand - Refactored
odoo-installscript:- Always install python extra utils
- Removed following options (primery goal of this, is to simplify
odoo-installscript):--extra-utils: extrautils are installed by default--install-sys-deps: use instead separate command:odoo-helper install--install-and-conf-postgres: use instead separate command:odoo-helper installorodoo-helper postgres--use-system-packages: seems to be not useful--use-shallow-clone: seems to be not useful--use-unbuffer: seems to be not useful
- Added following options:
--odoo-version: this option is useful in case of using custom repository and custom branch with name different then odoo's version branches
- Fixed bug with
--conf-opt-*and--test-conf-opt-*options
- Completely refactored
odoo-helper testcommand- removed
--reinit-base - added
--coverageoptions - Added subcommand
odoo-helper test flake8 - Added subcommand
odoo-helper test pylint
- removed
odoo-helper addons update-listcommand: ran for all databases if no db specified- suppress git feedback in
odoo-helper system update - improve system-wide install script: allow to choose odoo-helper branch or commit to install
- Added ability to run tests for directory. In this case odoo-helper script will automaticaly discover addons in that directory
- odoo-helper: added
--no-colorsoption odoo-helper trcommand improved:importandloadsubcommands can be ran on all databasesimportsubcommand: added ability to search addons in directory- bugfix in
tr import: import translations only for installed addons
- Added
addons test-installedcommand This allows to find databases where this addon is installed - Bugfix:
addons check_updatescommand: show repositories that caused errors when checking for updates addons statuscommand now shows repository's remoresodoo-helper fetchandodoo-helper linkcommands refactored:- Added recursion protection for both of therm, to avoid infinite recursion
odoo-helepr fetchfilter-out uninstallable addons, on linking muti-addon repoodoo-helper linknow is recursive, thus it will look for odoo addons recursively in a specified directory and link them all.
- Added
odoo-helper installcommand, which allows to install system dependencies for specific odoo version without installing odoo itself - Added
odoo-helper addons install --no-restartoption - Added
odoo-helper addons update --no-restartoption - Added following shortcuts:
odoo-helper pipto run pip for current projectodoo-helper startforodoo-helper server startodoo-helper stopforodoo-helper server stopodoo-helper restartforodoo-helper server restartodoo-helper logforodoo-helper server log
Release 0.0.10 (2016-09-08)
- Bugfixes in
odoo-helper testcommand - Added
odoo-helper addons check_updatescommand - Improved
odoo-helper addons statuscommand to be able to correctyle display remote status of git repos of addons - Added
odoo-helper postgrescommand to manage local postgres instance odoo-helper-*shortcuts refactored- Added command
odoo-helper addons update_list <db>which updates list of available modules for specified db - Bugfixes and improvements in
odoo-helper trcommand
Release 0.0.9 (2016-08-17)
- Added
odoo-helper scaffold <addon_name> [addon_path]shortcut command - Added
odoo-helper trsubcommand that simplifies translation management - Added shortcuts for frequently used subcommands to
bindir, so standard autocomplete can help. They are:- odoo-helper-server
- odoo-helper-db
- odoo-helper-addons
- odoo-helper-fetch
- Added
odoo-helper addons updateandodoo-helper addons installsubcommands - Refactored
odoo-helper server auto-updateandodoo-helper update_odoo
Release 0.0.8 (2016-06-08)
- Bugfix in
odoo-helper link .command - Added aditional extra_python depenencies:
- setproctitle
- python-slugify
- watchdog
- Added experimental command
odoo-helper server auto-update. - Added experimental command
odoo-helper db backup-all.
Release 0.0.7 (2016-04-18)
- odoo-helper system lib-path command makes available to use some parts of this project from outside
- Added new db commands: dump, restore, backup
- odoo-helper addons status: bugfix in parsing git status
- odoo-install related fixes
Release 0.0.6 (2016-03-19)
- Added 'odoo-helper exec
[args]' command - Added simple auto-update mechanism
- odoo-helper addons: Added ability to list addons not under git
Release 0.0.5 (2016-02-29)
- Added support to manage server state via init script
- Separate repository directory to store repositories fetched by this scripts
- Added ability to install Odoo from non-standard repository
- Added basic support of OCA dependency files (oca_dependencies.txt)
Release 0.0.4 (2016-02-17)
- Added ability to specify config options on odoo-install
- Added automatic processing of pip requirements file placed in repo.
- Added better check if postgres installed on attempt to install it.
Release 0.0.3 (2015-12-16)
- Added
odoo-helper statuscommand - Added
odoo-helper dbcommand
Release 0.0.2 (2015-12-01)
- Initial release