-
Notifications
You must be signed in to change notification settings - Fork 86
[FIX] *: replace all request.env by keywords to replace in the arch #1454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] *: replace all request.env by keywords to replace in the arch #1454
Conversation
|
@amas-odoo @vava-odoo cherrypicking of pull request #1419 failed. stdout: Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?). In the former case, you may want to edit this PR message as well. More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port |
4262207 to
1f1a198
Compare
|
@robodoo r+ |
|
@amas-odoo @vava-odoo because this PR has multiple commits, I need to know how to merge it:
|
- 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.
1f1a198 to
57f80a8
Compare
|
@amas-odoo @vava-odoo this forward port of #1419 is awaiting action (not merged or closed). |
1 similar comment
|
@amas-odoo @vava-odoo this forward port of #1419 is awaiting action (not merged or closed). |
|
@robodoo r+ |
- 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. closes #1454 Signed-off-by: Vallaeys Valentin (vava) <[email protected]> Signed-off-by: Amardeep Sharma (amas) <[email protected]>

request.env.ref()usage with placeholder keywords and appliedreplace()on the view arch to dynamically insert correct IDs at runtime,restoring view editability.
• Disallow use of
t-att-value,t-att-href, andt-attf-href• Warn when
valueorhrefcontains hardcoded digits orrequest.env.ref(...)This improves maintainability, prevents hardcoded references, and ensures views
remain editable.
Task ID: 5355861
Forward-Port-Of: #1450
Forward-Port-Of: #1419