Skip to content

Releases: initOS/dob-lib

v0.20.9

Choose a tag to compare

@fkantelberg fkantelberg released this 26 Mar 08:14
Disable pipe for run to get the actual error code to return

v0.20.8

Choose a tag to compare

@fkantelberg fkantelberg released this 05 Mar 12:24
f562a2d
Fix remove early initialization of res.{partner,company,users} (#25)

* Fix remove early initialization of res.{partner,company,users}

This early initialization was there to prevent exceptions caused by
fetching values of (newly added) fields of those models that were not yet
present in the database, but had already been added to the model on the
Python side.

Unfortunately, this did run before any module migration. Consequently, a
module's pre-migration, which should run before any module and module
upgrade, did then run only after those models had already been updated.

Also, the early initialization as implemented did already come too late.
It had to run before `check_auto_install()`, but did run only in
`update_changed()`, a couple of code lines later.

In the end, it is unnecessary if `prefetch_fields=False` is in the context.

But the `context_get()` does not put this entry into the context.

This commit fixes all those issue. It makes the early initialization of the
three models superfluous, and thus automatically let's the migration work
as expected again.

* Restructure code a bit to reduce duplicate actions. Reuse context

---------

Co-authored-by: fkantelberg <florian.kantelberg@initos.com>

v0.20.7

Choose a tag to compare

@fkantelberg fkantelberg released this 23 Feb 10:15
00fbd75
Fix adapting to changed CLI of Odoo 19 (#24)

The Odoo 19 executable has a changed command line interface, reorganizing
more options by grouping them into further commands, see
https://www.odoo.com/documentation/19.0/developer/reference/cli.html
and the output of
    docker compose run --rm odoo odoo run --help

Running a command requires it to be specified *before* any further command
line options, which includes the `-c CONFIG_FILE`, try
    docker compose run --rm odoo odoo run i18n --help
which until now failed to show the help for command `i18n`.

v0.20.6

Choose a tag to compare

@fkantelberg fkantelberg released this 23 Jan 14:19
Fix cmd config for prettier

v0.20.5

Choose a tag to compare

@fkantelberg fkantelberg released this 08 Jan 07:24
Prevent exceptions because of prefetching non existing fields

v0.20.3

Choose a tag to compare

@fkantelberg fkantelberg released this 22 Dec 07:20
Initialize the database by directly installing base

v0.20.2

Choose a tag to compare

@fkantelberg fkantelberg released this 24 Nov 06:59
Bump version

v0.20.1

Choose a tag to compare

@fkantelberg fkantelberg released this 13 Nov 10:51
Start the HTTP server on threaded mode to allow HttpCase tests

v0.20.0

Choose a tag to compare

@fkantelberg fkantelberg released this 05 Nov 12:53
Move towards usage of ruff

v0.19.8

Choose a tag to compare

@fkantelberg fkantelberg released this 09 Oct 10:42
Fix unittest and mock odoo.tests import