summaryrefslogtreecommitdiff
path: root/addons/website_blog/data
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2016-09-02 13:23:43 +0200
committerMartin Trigaux <mat@odoo.com>2016-09-02 16:14:26 +0200
commit11812b0b9e82b2b1b9041d8250ce01e7b4a5f7ee (patch)
tree25e21b589d2bf45d2fdd2d4c65d94a707b00cc45 /addons/website_blog/data
parente5f05074f8110b3282c558b6108fdc88b41d7522 (diff)
[FIX] all: remove external ids fakely from base
Several modules defines records with the external ID `base.foo_bar` while it is created inside this module (typically menus and groups). While there is no technical reasons to do so but this may introduce issues: - these records will not be deleted during uninstall - if a language is loaded before the installation of the module, it won't be translated The uninstallation will only remove the records with an external id linked to this module (these would only be removed when removing base). Installing a language before the module will drop the translations not linked to an existing external id (as it can not be resolved). This commit correct all the external ids tagged as from base or other incorrect modules.
Diffstat (limited to 'addons/website_blog/data')
-rw-r--r--addons/website_blog/data/website_blog_data.xml4
-rw-r--r--addons/website_blog/data/website_blog_demo.xml4
2 files changed, 4 insertions, 4 deletions
diff --git a/addons/website_blog/data/website_blog_data.xml b/addons/website_blog/data/website_blog_data.xml
index c0e4aba0ce8..bc6281503ca 100644
--- a/addons/website_blog/data/website_blog_data.xml
+++ b/addons/website_blog/data/website_blog_data.xml
@@ -15,7 +15,7 @@
<!-- Pre loaded covers -->
- <record id="website.blog_post_cover_01" model="ir.attachment">
+ <record id="blog_post_cover_01" model="ir.attachment">
<field name="name">Blog Post Cover 1</field>
<field name="datas_fname">Blog Post Cover 1</field>
<field name="res_model">ir.ui.view</field>
@@ -23,7 +23,7 @@
<field name="url">/website_blog/static/src/img/demo/blog_post_cover_1.jpg</field>
</record>
- <record id="website.blog_post_cover_02" model="ir.attachment">
+ <record id="blog_post_cover_02" model="ir.attachment">
<field name="name">Blog Post Cover 2</field>
<field name="datas_fname">Blog Post Cover 2</field>
<field name="res_model">ir.ui.view</field>
diff --git a/addons/website_blog/data/website_blog_demo.xml b/addons/website_blog/data/website_blog_demo.xml
index 4821327d5a0..957a4daf66a 100644
--- a/addons/website_blog/data/website_blog_demo.xml
+++ b/addons/website_blog/data/website_blog_demo.xml
@@ -19,7 +19,7 @@
<field name="published_date" eval="time.strftime('%Y-%m-%d %H:%M:%S')"/>
<field name="website_meta_keywords">Odoo, email</field>
<field name="website_meta_description">The Future of Emails</field>
- <field name="cover_properties">{"background-image": "url(/web/image/website.blog_post_cover_01)", "resize_class": "cover container cover_narrow"}</field>
+ <field name="cover_properties">{"background-image": "url(/web/image/website_blog.blog_post_cover_01)", "resize_class": "cover container cover_narrow"}</field>
<field name="content"><![CDATA[
<section class="s_text_block">
<div class="container">
@@ -133,7 +133,7 @@
<field name="website_published" eval="True"/>
<field name="published_date" eval="time.strftime('%Y-%m-%d %H:%M:%S')"/>
<field name="tag_ids" eval="[(6, 0, [ref('blog_tag_1'), ref('blog_tag_2')])]"/>
- <field name="cover_properties">{"background-image": "url(/web/image/website.blog_post_cover_02)", "resize_class": "cover container-fluid cover_full"}</field>
+ <field name="cover_properties">{"background-image": "url(/web/image/website_blog.blog_post_cover_02)", "resize_class": "cover container-fluid cover_full"}</field>
<field name="content"><![CDATA[
<section class="s_image_text">
<div class="container">