From 880fe1e67fcb7a336bb4720945ac76ac149d706b Mon Sep 17 00:00:00 2001 From: Denis Roussel Date: Sun, 12 Oct 2025 14:58:48 +0200 Subject: [PATCH 1/2] [IMP] As Odoo changed to namespace >= 19.0, import packages at the beginning --- pytest_odoo.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pytest_odoo.py b/pytest_odoo.py index 0a6b0e5..1350a45 100644 --- a/pytest_odoo.py +++ b/pytest_odoo.py @@ -19,7 +19,9 @@ import pytest import odoo - +from odoo import release +if odoo.release.version_info >= (19,0): + import odoo.tools, odoo.service, odoo.release, odoo.api, odoo.tests, odoo.sql_db, odoo.modules def pytest_addoption(parser): parser.addoption("--odoo-database", From 48027eebe43bc3c8180b6758e8905cb43409b25a Mon Sep 17 00:00:00 2001 From: Denis Roussel Date: Sun, 12 Oct 2025 15:05:27 +0200 Subject: [PATCH 2/2] [IMP] Add python3.13 --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f447421..ae94cc2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,8 @@ jobs: os: ubuntu-latest - PYTHON_VERSION: "3.12" os: ubuntu-latest + - PYTHON_VERSION: "3.13" + os: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Set up Python