summaryrefslogtreecommitdiff
path: root/addons/website_livechat/views/website_livechat.xml
diff options
context:
space:
mode:
authorrde <rde@odoo.com>2017-09-25 15:54:15 +0200
committerrde <rde@odoo.com>2017-09-26 16:08:14 +0200
commit8baabfb6be9e1db1af0828d705d07a1ec6f0029a (patch)
tree15cb01bcd2d445b48d0d0f05aeeff42b422b2599 /addons/website_livechat/views/website_livechat.xml
parent0426849de18b587bd0624d644b1208a24edefde9 (diff)
[FIX] website_*: convert old ir.ui.view page=True into website.page in 1 record
Before this commit, website.page xml record were created in 2 steps: 1. Create an ir.ui.view record with <template> tag 2. Create a website.page record with <record model="website.page"> But this is useless since website.page inheritS ir.ui.view, you can create both records just in one <record> tag. Note: This is NOT TRUE in every case: Odoo's ORM will suffix external_id of inherited records (in this case the ir.ui.view created through the website.page record) with its model's name. This can be a problem in some case (this is an example): website_crm_template.xml create an ir.ui.view inheriting the ir.ui.view 'website.contactus'. But if we didn't keep website.page & ir.ui.view records split for that specific case, the ir.ui.view would inherit a website.page record causing an error. (website.contactus would be the id of the page record while the ir.ui.view's id would be website.contactus_ir_ui_view) In short: when migrating an ir.ui.view (<record> xml) to a website.page: * If there is record inheriting the ir.ui.view ID, then split website.page & ir.ui.view * if not, you can create the website.page and its ir.ui.view both in one record (<record model="website.page"). This commit also removed remaining page="True" from xml template since we removed the 'page' attribute from ir.ui.view model overrided in website module.
Diffstat (limited to 'addons/website_livechat/views/website_livechat.xml')
-rw-r--r--addons/website_livechat/views/website_livechat.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_livechat/views/website_livechat.xml b/addons/website_livechat/views/website_livechat.xml
index 523705d93a9..c43c4294dec 100644
--- a/addons/website_livechat/views/website_livechat.xml
+++ b/addons/website_livechat/views/website_livechat.xml
@@ -38,7 +38,7 @@
</template>
<!-- Page Layout -->
- <template id="channel_page" name="Livechat Channel Satisfaction Page" page="True">
+ <template id="channel_page" name="Livechat Channel Satisfaction Page">
<t t-call="website.layout">
<div id="wrap">
<div class="container">