summaryrefslogtreecommitdiff
path: root/addons/website/data/data.xml
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2014-09-02 15:19:09 +0200
committerChristophe Matthieu <chm@odoo.com>2014-09-02 15:19:09 +0200
commitc1b1ba694537001ebac9dc84d22f545626f7d60b (patch)
tree0c79186fa639b786287fad49167ca38f4e8688b5 /addons/website/data/data.xml
parentdd4a7213b0c73f4976a809f8531e937f64e66471 (diff)
[IMP] website: image controller can use xmlid
Diffstat (limited to 'addons/website/data/data.xml')
-rw-r--r--addons/website/data/data.xml7
1 files changed, 4 insertions, 3 deletions
diff --git a/addons/website/data/data.xml b/addons/website/data/data.xml
index 08ef965104c..f83b1378f54 100644
--- a/addons/website/data/data.xml
+++ b/addons/website/data/data.xml
@@ -92,12 +92,13 @@
<!-- Pre loaded images -->
- <record model="ir.attachment">
+ <!-- base64-encoded on ir.attachment, to allow to load image with the xmlid -->
+ <record id="website.business_conference" model="ir.attachment">
<field name="name">business_conference</field>
<field name="datas_fname">business_conference.jpg</field>
<field name="res_model">ir.ui.view</field>
- <field name="type">url</field>
- <field name="url">/website/static/src/img/library/business_conference.jpg</field>
+ <field name="type">binary</field>
+ <field name="datas" type="base64" file="website/static/src/img/library/business_conference.jpg"/>
</record>
<record model="ir.attachment">