Files
odoo_source/addons/test_website/__manifest__.py
T
Romain Derie 50e27b3c84 [FIX] website, *: make custom search model work when no website_id
*: test_website

Commit [1] modified the custom page search model so it is adding the
current website in the search domain.

But it was not considering the case of models not having a website_id
field.
The only case was the appoitment.type model.

Steps to reproduce:
- Install website_appointment (enterprise)
- Click on Website > Site > Appointments
- Crash

[1]: https://github.com/odoo/odoo/commit/db670f64f4c2190f1655f9077ea62885049a3c84

closes odoo/odoo#151686

X-original-commit: 247a5e157f14ce2cd8fbbe8d191abcb3c2e4ec0d
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2024-01-31 06:59:10 +00:00

52 lines
1.7 KiB
Python

# -*- encoding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Website Test',
'version': '1.0',
'category': 'Hidden',
'sequence': 9876,
'summary': 'Website Test, mainly for module install/uninstall tests',
'description': """This module contains tests related to website. Those are
present in a separate module as we are testing module install/uninstall/upgrade
and we don't want to reload the website module every time, including it's possible
dependencies. Neither we want to add in website module some routes, views and
models which only purpose is to run tests.""",
'depends': [
'web_unsplash',
'website',
'theme_default',
],
'demo': [
'data/test_website_demo.xml',
],
'data': [
'views/templates.xml',
'views/test_model_multi_website_views.xml',
'views/test_model_views.xml',
'data/test_website_data.xml',
'security/ir.model.access.csv',
],
'installable': True,
'assets': {
'test_website.test_bundle': [
'http://test.external.link/javascript1.js',
'/web/static/src/libs/fontawesome/css/font-awesome.css',
'http://test.external.link/style1.css',
'/web/static/src/module_loader.js',
'http://test.external.link/javascript2.js',
'http://test.external.link/style2.css',
],
'web.assets_frontend': [
'test_website/static/src/js/test_error.js',
],
'web.assets_tests': [
'test_website/static/tests/tours/*',
],
'web.qunit_suite_tests': [
'test_website/static/tests/*.js',
],
},
'license': 'LGPL-3',
}