odoo/industry#1562

Created by fw-bot
Merged at a3b802e1332fc55e47a7ebb895683131917d1b3d

Statuses:

label
odoo-dev:master-18.0-replace-request-env-by-replace-keyword-in-arch-amas-490818-fw
head
0b836ae138efdccc88d959943b397f3bc8bd4a5b
merged
5 days ago by Industry, Vallaeys Valentin (vava)
odoo/industry
18.0 #1419
saas-18.2 #1450
saas-18.3 #1454
saas-18.4 #1484
19.0 #1489
saas-19.1 #1552
master #1562

[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: #1552
Forward-Port-Of: #1419