BreakingHighlight of Weekly #005

Foreign key errors may arrive as RestrictViolation

Depending on the PostgreSQL version, foreign key violations can be raised as RESTRICT violations. The ORM now treats both the same way, and custom code catching only ForeignKeyViolation should do the same.

Versions19.020.0
AppFramework & technical

On the upgrade checklist: 18.0 → 19.0

Pull requests and commits

BranchPull requestCommit
19.0odoo/odoo#295973 ↗b5fff52e50 ↗
20.0odoo/odoo#296649 ↗e0a9e86be2 ↗

Commit message

[FIX] orm: foreign key error can raise RestrictViolation

Depending on the database version, it is possible that foreign key
violations are raised as RESTRICT violations. Treat both the same way.

runbot-955588

My stack

Pick the versions and apps you run. Weekly digests, this week's table and All changes then show only what concerns you. Saved in this browser.

Versions
Apps
Modules