Skip to content

Releases: initOS/dob-lib

v0.20.8

05 Mar 12:24
f562a2d

Choose a tag to compare

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

23 Feb 10:15
00fbd75

Choose a tag to compare

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

23 Jan 14:19

Choose a tag to compare

Fix cmd config for prettier

v0.20.5

08 Jan 07:24

Choose a tag to compare

Prevent exceptions because of prefetching non existing fields

v0.20.3

22 Dec 07:20

Choose a tag to compare

Initialize the database by directly installing base

v0.20.2

24 Nov 06:59

Choose a tag to compare

Bump version

v0.20.1

13 Nov 10:51

Choose a tag to compare

Start the HTTP server on threaded mode to allow HttpCase tests

v0.20.0

05 Nov 12:53

Choose a tag to compare

Move towards usage of ruff

v0.19.8

09 Oct 10:42

Choose a tag to compare

Fix unittest and mock odoo.tests import

v0.19.7

11 Jul 13:01

Choose a tag to compare

Fix bug checking the wrong path if it's a symlink