odoo/industry#1450

Created by fw-bot
Merged at a756df4a70f4309a397a7107779c2d754f9ef7da

Statuses:

label
odoo-dev:saas-18.2-18.0-replace-request-env-by-replace-keyword-in-arch-amas-480957-fw
head
58479a072b201dad6c49db0eb6513734a99c585c
merged
1 day ago by Amardeep Sharma (amas)
odoo/industry
18.0 #1419
saas-18.2 #1450
saas-18.3 #1454 missing r+
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 of t-att-value, t-att-href, and t-attf-href
    • Warn when value or href contains hardcoded digits or request.env.ref(...)

This improves maintainability, prevents hardcoded references, and ensures views
remain editable.

Task ID: 5355861

Forward-Port-Of: #1419