Steps to reproduce the bug:
- Install the "Surveys" application.
- Go to the "Website" application.
- Go in the page manager ("Site" > "Pages").
- Select a page (typically "Home").
- Try to delete it.
- Error of type "'survey.survey' object has no attributes 'name'".
The error comes from the fact that records do not necessarily have the
attribute called "name". To fix this error, this commit uses
"display_name" that is defined in all models.
task-3082345
opw-3100483
opw-3111671
X-original-commit: d5aa5d7ebf9cd17a6df054252a1313ec8b85e83e
Part-of: odoo/odoo#109329
11 lines
375 B
Python
11 lines
375 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
import odoo.tests
|
|
|
|
@odoo.tests.common.tagged('post_install', '-at_install')
|
|
class TestWebsitePageManager(odoo.tests.HttpCase):
|
|
|
|
def test_01_page_manager(self):
|
|
self.start_tour(self.env['website'].get_client_action_url('/'), 'website_page_manager', login="admin")
|