Skip to content

Commit 982ac6a

Browse files
committed
Bump to 0.20.4. Overwrite addons_community_dir to allow blacklisting/whitelisting of CE modules
1 parent 142faf1 commit 982ac6a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/doblib/__init__.py

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

src/doblib/env.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,14 @@ def _init_odoo(self):
245245
if self.odoo_version() >= (19,):
246246
import odoo.init
247247

248+
# Odoo 19.0 automatically sets the addons/ folder using the
249+
# `addons_community_dir` property of the config as a path for addons.
250+
# This bypasses the blacklisting/whitelisting of modules for CE modules
251+
# entirely. Just set it to the ADDON_PATH where every module gets a symlink
252+
from odoo.tools.config import configmanager
253+
254+
configmanager.addons_community_dir = base.ADDON_PATH
255+
248256
return path
249257

250258
def odoo_version(self):

0 commit comments

Comments
 (0)