connector
connector copied to clipboard
[19.0][MIG] connector: Migration to 19.0
Main changes
-
New security model support
- Add a
res.groups.privilegerecord introduced in 19.0 and adapted the existing res.groups record accordingly
- Add a
-
Test suite updates for 19.0 API
- Replace deprecated
self.env2.reset()calls withself.env2.transaction.reset()in tests. - Adapt tests to the now read-only
env.context:- Remove direct writes to
self.env.context. - Use
self.env()to create a new environment instead
- Remove direct writes to
- Remove / replace references to demo data:
- Demo loading order changed in 19.0, so some demo
external_ids are no longer guaranteed to exist. - Tests now rely on explicit test data instead of demo records.
- Demo loading order changed in 19.0, so some demo
- Replace deprecated
Functional impact
- No functional feature changes are intended.
- The goal of this PR is to make the module compatible with Odoo 19.0 while preserving existing behavior where possible.
Dependencies
This PR has been tested against the following non-merged branches of dependent modules: