Skip to content

Conversation

@fw-bot
Copy link

@fw-bot fw-bot commented Dec 18, 2025

  • 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: #1450
Forward-Port-Of: #1419

@robodoo
Copy link
Collaborator

robodoo commented Dec 18, 2025

Pull request status dashboard

@fw-bot
Copy link
Author

fw-bot commented Dec 18, 2025

@amas-odoo @vava-odoo cherrypicking of pull request #1419 failed.

stdout:

Auto-merging electronic_store/demo/website_theme_apply.xml
Auto-merging furniture_store/demo/website_theme_apply.xml
Auto-merging gallery/demo/website_theme_apply.xml
CONFLICT (content): Merge conflict in gallery/demo/website_theme_apply.xml
Auto-merging headhunter/demo/website_theme_apply.xml
CONFLICT (content): Merge conflict in headhunter/demo/website_theme_apply.xml
Auto-merging marketing_agency/demo/website_theme_apply.xml
Auto-merging micro_brewery/data/website_view.xml
Auto-merging micro_brewery/demo/website_theme_apply.xml
CONFLICT (content): Merge conflict in micro_brewery/demo/website_theme_apply.xml
Auto-merging micro_brewery/demo/website_view.xml
CONFLICT (content): Merge conflict in micro_brewery/demo/website_view.xml
Auto-merging real_estate/data/website_theme_apply.xml
CONFLICT (content): Merge conflict in real_estate/data/website_theme_apply.xml
Auto-merging real_estate/data/website_view.xml
Auto-merging tests/test_generic/tests/test_xml.py

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.

⚠️ after resolving this conflict, you will need to merge it via @robodoo.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@amas-odoo amas-odoo force-pushed the saas-18.3-18.0-replace-request-env-by-replace-keyword-in-arch-amas-484909-fw branch 2 times, most recently from 4262207 to 1f1a198 Compare December 18, 2025 12:28
@amas-odoo
Copy link
Contributor

@robodoo r+

@robodoo
Copy link
Collaborator

robodoo commented Dec 18, 2025

@amas-odoo @vava-odoo because this PR has multiple commits, I need to know how to merge it:

  • merge to merge directly, using the PR as merge commit message
  • rebase-merge to rebase and merge, using the PR as merge commit message
  • rebase-ff to rebase and fast-forward

- 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.
@amas-odoo amas-odoo force-pushed the saas-18.3-18.0-replace-request-env-by-replace-keyword-in-arch-amas-484909-fw branch from 1f1a198 to 57f80a8 Compare December 18, 2025 13:36
@fw-bot
Copy link
Author

fw-bot commented Dec 26, 2025

@amas-odoo @vava-odoo this forward port of #1419 is awaiting action (not merged or closed).

1 similar comment
@fw-bot
Copy link
Author

fw-bot commented Jan 2, 2026

@amas-odoo @vava-odoo this forward port of #1419 is awaiting action (not merged or closed).

@amas-odoo
Copy link
Contributor

@robodoo r+

robodoo pushed a commit that referenced this pull request Jan 5, 2026
- 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]>
@robodoo robodoo closed this Jan 5, 2026
@fw-bot fw-bot deleted the saas-18.3-18.0-replace-request-env-by-replace-keyword-in-arch-amas-484909-fw branch January 12, 2026 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants