diff options
Diffstat (limited to 'addons/website/data/website_data.xml')
| -rw-r--r-- | addons/website/data/website_data.xml | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/addons/website/data/website_data.xml b/addons/website/data/website_data.xml index a175e02f2c3..1b0de430feb 100644 --- a/addons/website/data/website_data.xml +++ b/addons/website/data/website_data.xml @@ -30,16 +30,7 @@ <field name="website_id" ref="default_website"/> </record> - <!-- - Keep homepage & contactus page split between ir_ui_view & website_page record - So external_id of the ir_ui_view record is still 'website.contactus' and not 'website.contactus_ir_ui_view' (same for homepage) - Indeed Odoo put a suffix on external_id on submodels records (inherits) with the model's name as suffix. - eg: record website_page is 'website.contactus' & ir_ui_view record is 'website.contactus_ir_ui_view' - but since website_crm_template.xml (and surely others) inherit the contactus ir_ui_view record (inherit_id="website.contactus"), - the external_id of the contactus ir_ui_view record still has to be 'website.contactus'. - (Put in another way, external_id 'website.contactus' can't be the external_id of the website_page record or the inherit will ofc fail) - (Or change inherit_id in related files but possibly alot. Safer this way) - --> + <!-- split between ir_ui_view & website_page record to keep external_id on ir_ui_view --> <record id="homepage" model="ir.ui.view"> <field name="name">Home</field> <field name="type">qweb</field> |
