From 0ea4981e41222950c542fcc774cb743f52e05940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Andreatta?= Date: Tue, 5 May 2026 13:23:54 +0200 Subject: [PATCH 1/2] [FIX] odoobin: improve debugger detection and fix filtering logic --- odev/common/odoobin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/odev/common/odoobin.py b/odev/common/odoobin.py index be098c7b..7798ba28 100644 --- a/odev/common/odoobin.py +++ b/odev/common/odoobin.py @@ -626,7 +626,7 @@ def run( # noqa: PLR0913 self.database.worktree = self.worktree internal_filter = self.get_stream_filter() - if internal_filter: + if internal_filter and stream_filter is not None: original_filter = stream_filter def combined_filter(line: str) -> str | None: @@ -892,6 +892,7 @@ def addons_debuggers(self) -> Generator[tuple[Path, int], None, None]: """ odoo_base_path: Path = self.odoo_path / "odoo" addons_paths = {(odoo_base_path if odoo_base_path in path.parents else path) for path in self.addons_paths} + addons_paths.add(odoo_base_path) for addon in addons_paths: yield from find_debuggers(addon) From bd7616036a7982f613bbfe9ec091c170611b1db8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Andreatta?= Date: Tue, 5 May 2026 13:32:29 +0200 Subject: [PATCH 2/2] [FIX] odoobin: check if addons paths exist before searching for debuggers --- odev/common/odoobin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/odev/common/odoobin.py b/odev/common/odoobin.py index 7798ba28..8b0e881d 100644 --- a/odev/common/odoobin.py +++ b/odev/common/odoobin.py @@ -895,7 +895,8 @@ def addons_debuggers(self) -> Generator[tuple[Path, int], None, None]: addons_paths.add(odoo_base_path) for addon in addons_paths: - yield from find_debuggers(addon) + if addon.is_dir(): + yield from find_debuggers(addon) def save_database_repository(self): """Link the database to the first repository in additional addons-paths, allowing for reusing it in subsequent