diff options
| author | Romain Derie <rde@odoo.com> | 2021-01-11 19:27:02 +0000 |
|---|---|---|
| committer | Romain Derie <rde@odoo.com> | 2021-01-12 10:13:40 +0000 |
| commit | afc74fa8a85cade6f1342d4d9141f70ed8258d42 (patch) | |
| tree | f6815f10f54d758278564d6ebb5013a57d31c6d9 /addons/test_website/data/test_website_data.xml | |
| parent | abb1d35c5bcf75266ba46f94ec932b829434f28b (diff) | |
[FIX] test_website: add tests for website.rewrite
Basic tests & tests of the 3 fixes of #64328
Diffstat (limited to 'addons/test_website/data/test_website_data.xml')
| -rw-r--r-- | addons/test_website/data/test_website_data.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/test_website/data/test_website_data.xml b/addons/test_website/data/test_website_data.xml index e970f69484e..393b6631772 100644 --- a/addons/test_website/data/test_website_data.xml +++ b/addons/test_website/data/test_website_data.xml @@ -95,5 +95,13 @@ <div>I am a base view</div> </template> + <!-- RECORDS FOR REDIRECT TESTS --> + <template id="test_redirect_view"> + <t t-esc="country.name"/> + <t t-if="not request.env.user._is_public()" t-esc="'Logged In'"/> + <!-- `href` is send through `url_for` for non editor users --> + <a href="/test_website/country/andorra-1">I am a link</a> + </template> + </data> </odoo> |
