diff options
| author | Jeremy Kersten <jke@odoo.com> | 2021-01-21 17:20:59 +0000 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2021-01-25 13:36:30 +0000 |
| commit | f6f9671963640dbd7de33a8cc4597c9d9db7cfba (patch) | |
| tree | a2511cbd83017c75f60ae1915e08619985715f42 /addons/test_website/models | |
| parent | 62ee506a94b9fc4a6198c87cb8a2f186ed8bc6d3 (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/models')
| -rw-r--r-- | addons/test_website/models/__init__.py | 1 | ||||
| -rw-r--r-- | addons/test_website/models/model.py | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/addons/test_website/models/__init__.py b/addons/test_website/models/__init__.py new file mode 100644 index 00000000000..9186ee3ad24 --- /dev/null +++ b/addons/test_website/models/__init__.py @@ -0,0 +1 @@ +from . import model diff --git a/addons/test_website/models/model.py b/addons/test_website/models/model.py new file mode 100644 index 00000000000..626e3bec3e5 --- /dev/null +++ b/addons/test_website/models/model.py @@ -0,0 +1,14 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import fields, models + + +class TestModel(models.Model): + """ Add website option in server actions. """ + + _name = 'test.model' + _inherit = ['website.seo.metadata', 'website.published.mixin'] + _description = 'Website Model Test' + + name = fields.Char(required=1) |
