summaryrefslogtreecommitdiff
path: root/addons/test_website/data
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2019-10-16 15:45:01 +0000
committerfw-bot <otis@odoo.com>2019-10-21 23:21:45 +0000
commit7cce59a3c3bf151d7d69604400f52a2a5cc84694 (patch)
tree5912cb381f6efebd2dbf1ab1e6df14d2104f510f /addons/test_website/data
parented5b6c96959e73119ba0915ed4ba41fb5eb337a0 (diff)
[FIX] website: prevent traceback if xml homepage view has no page
The XML file homepage view record is not supposed to be deleted as it is used to bootstrap newly created website. If that view is deleted, everything's fine. But if that view's page is not found (m2o link broken somehow), then the code would crash. This would only appear if the user is playing in the backend in technical but it seems to happen more than it should. This commit will prevent the code to crash in such a case. Step to reproduce: 1. Go to settings > technical > views (debug) 2. Find the xml homepage view (with xml_id) 3. Go to its website.page and break the m2o view_id 4. Try to create a new website, it will crash opw-2081894 closes odoo/odoo#39149 X-original-commit: 1d4dd200c664b99dbdb3e65e3950be1cb5e79a0a Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Diffstat (limited to 'addons/test_website/data')
0 files changed, 0 insertions, 0 deletions