Tuesday, January 23, 2024
1 change · 17.0
Resolved issues and error corrections
This fix resolves a critical issue that prevented users from importing custom account demo data in Odoo 17. A small code error was causing the import process to fail. With this fix, users can now successfully reinstall Odoo with their custom account data without encountering errors.
Original PR description
Steps to reproduce: - Re-install Odoo 17 with custom account demo data (e.g. account.account.csv) Issue: Import fails with: TypeError: 'ABCMeta' object does not support the context manager protocol Cause: In load() in account_account.py, commit 2ca15862a731a84560f761fc5e7b65e6d2885c54 introduced the line `manager = nullcontext`, which must be `manager = nullcontext()` (https://docs.python.org/3/library/contextlib.html#contextlib.nullcontext). Description of the issue/feature this PR addresses: Account demo data import fails Current behavior before PR: Account demo data fails with: TypeError: 'ABCMeta' object does not support the context manager protocol Desired behavior after PR is merged: Account demo data import works again. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr