odoo/industry#2305
Created by fw-bot
- label
- odoo-dev:saas-19.3-saas-19.2-booking_engine_kanban_view_owl_error-fix-dhvag-534917-fw
- head
- 950134a426c9b29c3ac0a0a0c9b477398482e9a8
- merged
- 11 hours ago by Industry, Vallaeys Valentin (vava)
| 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