ORM:
- ExtendModel(name) retrieves existing model for extension (mirrors
Python _inherit without _name). Panics on missing model.
- RegisterInverse(fieldName, fn) convenience for computed write-back
- Inverse field handling in Write(): caches new value, calls inverse
method so computed fields can be written back
Sale module:
- Extends res.partner with sale_order_ids (O2M) and sale_order_count
(computed) via ExtendModel — demonstrates real _inherit pattern
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>