pyvelm v0.2.3¶
Release date: 2026-05-22
Base module: 0.18.0 (unchanged)
Adds Odoo-style related fields and readonly on model field declarations.
Highlights¶
Related fields¶
Mirror a value through a dotted path — no SQL column:
- Read:
partner.company_currency_id→partner.company_id.currency_id - Write: updating the related field updates the company's
currency_id - Paths: Many2one hops only (e.g.
company_id.currency_id) - Types: related field must match the leaf (
Many2one→Many2one, etc.)
Field readonly¶
write()and attribute assignment raiseValueError- Edit forms disable the input unless the view sets
readonly=False
Install¶
Upgrade from v0.2.2¶
pip install -U pyvelm==0.2.3- Restart the app process (models reload on import)
- Add related fields to your models as needed — no migration
Full diff: v0.2.2…v0.2.3