Skip to content

Commit 142faf1

Browse files
committed
Initialize the database by directly installing base
1 parent 3443b91 commit 142faf1

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/doblib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "0.20.2"
1+
VERSION = "0.20.3"

src/doblib/module.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,7 @@ def update(self, args=None): # pylint: disable=R0915
254254
with closing(db.cursor()) as cr:
255255
if not odoo.modules.db.is_initialized(cr):
256256
utils.info("Initializing the database")
257-
odoo.modules.db.initialize(cr)
258-
cr.commit()
257+
self.install_all(db_name, ["base"])
259258
initialized = True
260259

261260
# Execute the pre install script

0 commit comments

Comments
 (0)