pyvelm v0.2.7¶
Release date: 2026-05-23
Base module: 0.18.0 (unchanged)
Core ORM hardening: domain compiler fixes for __or__ with collection paths,
and Many2one cache invalidation when a referenced record is unlinked.
Highlights¶
Comodel unlink → referring M2O cache¶
Registry._m2o_referrers_index maps each comodel to Many2one fields that
point at it. On unlink():
ON DELETE SET NULL— FK cleared inenv.cache; parentOne2manytuples invalidated (including the old parent).ON DELETE CASCADE— referring rows’ caches dropped before the DB cascade runs.
__or__ + collection domains¶
Search domains like:
now compile collection sub-leaves with EXISTS (same as top-level
tag_ids.name leaves).
Tests¶
Integration test for comodel unlink cache requires PYVELM_DSN.
Install¶
Development from this repo:
Upgrade from v0.2.6¶
pip install -U pyvelm(orpip install -e .)- Restart app / cron workers
No schema changes.
Full diff: v0.2.6…v0.2.7