odoo/industry#2308
Created by fw-bot
Blocked
- Merge method
- Review
-
CI
- ci/industry: (runtime 34s)
- label
- odoo-dev:master-saas-19.2-booking_engine_kanban_view_owl_error-fix-dhvag-535034-fw
- head
- 8f1d74e861b2fd88a8d96b4a5bc10de967635dbf
| odoo/industry | |
|---|---|
| saas-19.2 | #2301 |
| saas-19.3 | #2305 |
| master | #2308 missing statuses |
[FIX] booking_engine: prevent Owl error in hotel planning kanban
Steps to Reproduce:
1. Go to Apps → Industry → Install Hotel (load demo data).
2. Open Hotel App.
3. Switch to the Kanban view.
Result:
<img width="978" height="710" alt="image" src="https://github.com/user-attachments/assets/247cc2a3-ac8f-4672-9dd2-2c96e0ce999b" />
Cause of the Issue:
-
The sale_planning module adds the
sale_line_idfield. -
Then, the booking_engine module removes the
sale_line_idfield from the kanban field declarations. -
However, the
sale sectionremains in the final template and still references:record.sale_line_id.raw_value
As a result:
Since sale_line_id is no longer loaded in the kanban record payload, the template attempts to access record.sale_line_id.raw_value on an undefined value, resulting in an OwlError.
With this commit:
Remove the corresponding sale section when removing sale_line_id. This keeps the kanban template consistent with the loaded fields and prevents the OwlError.
Forward-Port-Of: #2301