odoo/tutorials#789
Created by Ludo Traina (ltra)
Closed
- label
- odoo-dev:18.0-training-ltra
- head
- 00c56fc6ce2145493cb7dfed050511e161fab3ae
| odoo/tutorials | |
|---|---|
| 18.0 | #789 |
[ADD] estate: Server Framework 101 implementation
Server Framework 101
This PR follows the official Odoo backend tutorial:
🔗 https://www.odoo.com/documentation/18.0/developer/tutorials/server_framework_101.html
✅ Summary of features implemented:
- Create models:
EstateProperty,EstatePropertyType,EstatePropertyTag,EstatePropertyOffer - Add views: form, list, kanban, and search (with filters and groupings)
-
Implement business logic:
-
Computed fields and onchange methods
- Actions: mark as sold, cancel, accept/refuse offers
- SQL and Python constraints (e.g. pricing, uniqueness)
-
UI improvements:
-
Decorations (
success,danger, etc.) - Smart buttons (e.g. access related offers)
- Badges and conditional field attributes (
readonly,invisible,optional) -
Seller experience:
-
Display properties by seller
- Restrict deletion to 'new' or 'cancelled' states
- Enforce offer price to be higher than current best
- Set default ordering on models
-
Add a new module:
estate_account -
Overrides the "mark as sold" action
- Automatically generates an invoice for the sold property