summaryrefslogtreecommitdiff
path: root/addons/test_website/data/test_website_data.xml
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2021-01-21 17:20:59 +0000
committerJeremy Kersten <jke@odoo.com>2021-01-25 13:36:30 +0000
commitf6f9671963640dbd7de33a8cc4597c9d9db7cfba (patch)
treea2511cbd83017c75f60ae1915e08619985715f42 /addons/test_website/data/test_website_data.xml
parent62ee506a94b9fc4a6198c87cb8a2f186ed8bc6d3 (diff)
[IMP] test_website: add tests for controller slug matching
Be sure that we have a beautiful error page and not a black/white error Be sure that slug_matching with 308 redirect works as expected and don't raise a RequestUID exception. closes odoo/odoo#64889 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/test_website/data/test_website_data.xml')
-rw-r--r--addons/test_website/data/test_website_data.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/addons/test_website/data/test_website_data.xml b/addons/test_website/data/test_website_data.xml
index 393b6631772..0f9fc54cf73 100644
--- a/addons/test_website/data/test_website_data.xml
+++ b/addons/test_website/data/test_website_data.xml
@@ -2,6 +2,15 @@
<odoo>
<data noupdate="1">
+ <record id="test_model_publish" model="ir.rule">
+ <field name="name">Public user: read only website published</field>
+ <field name="model_id" ref="test_website.model_test_model"/>
+ <field name="groups" eval="[(4, ref('base.group_public'))]"/>
+ <field name="domain_force">[('website_published','=', True)]</field>
+ <field name="perm_read" eval="True"/>
+ </record>
+
+
<!-- RECORDS FOR RESET VIEWS TESTS -->
<record id="test_view" model="ir.ui.view">
<field name="name">Test View</field>