odoo/industry#1419
Created by Amardeep Sharma (amas)
- label
- odoo-dev:18.0-replace-request-env-by-replace-keyword-in-arch-amas
- head
- cc4112fd3cf8170e6db6885c82388a92405ccf3e
- merged
- 1 day ago by Industry, Vallaeys Valentin (vava)
| odoo/industry | |
|---|---|
| 18.0 | #1419 |
| saas-18.2 | #1450 missing statuses missing r+ |
| saas-18.3 | |
| saas-18.4 | |
| 19.0 | |
| master |
[FIX] *: replace all request.env by keywords to replace in the arch
- Replaced direct
request.env.ref()usage with placeholder keywords and applied
replace()on the view arch to dynamically insert correct IDs at runtime,
restoring view editability. - Updated validation logic to:
• Disallow use oft-att-value,t-att-href, andt-attf-href
• Warn whenvalueorhrefcontains hardcoded digits orrequest.env.ref(...)
This improves maintainability, prevents hardcoded references, and ensures views
remain editable.
Task ID: 5355861