summaryrefslogtreecommitdiff
path: root/addons/website_slides/data/slide_data.xml
diff options
context:
space:
mode:
authorqmo-odoo <qmo@odoo.com>2018-11-14 13:10:48 +0000
committerqmo-odoo <qmo@odoo.com>2018-11-19 08:28:34 +0000
commit6f5748d28854305bb33ffe54e5f94bab4a14828f (patch)
tree97e87d517646574d83bcf77a7ff7db41daf9e18a /addons/website_slides/data/slide_data.xml
parent2b896bcf82a4cf14fe1984b42f5412bc9a6e3869 (diff)
[MOV] slides: Rename and split files according to their underlying models
Purpose of this merge is to polish a bit this module before turning it into "courses" (see task #1902304 for more details on this) Contains * split python model into separate main files to ease models understanding; * split views into separate main files to ease views finding; * rename files according to guidelines; * merge templates in the same file to have all available at hand; * move assets in their own file in order to remove noise from templates; * Split javascript widgets into their own separate files No functional behavior change should occur with this commit. Only move has been performed. Note that we might lose part of the history as splitting files creates a new history for new files. Task: #1909281 Closes: #28679
Diffstat (limited to 'addons/website_slides/data/slide_data.xml')
-rw-r--r--addons/website_slides/data/slide_data.xml26
1 files changed, 26 insertions, 0 deletions
diff --git a/addons/website_slides/data/slide_data.xml b/addons/website_slides/data/slide_data.xml
new file mode 100644
index 00000000000..9d8315da810
--- /dev/null
+++ b/addons/website_slides/data/slide_data.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <data noupdate="1">
+ <record model="slide.channel" id="channel_public">
+ <field name="name">Public Channel</field>
+ <field name="promote_strategy">most_viewed</field>
+ <field name="website_published" eval="True"/>
+ <field name="visibility">public</field>
+ <field name="description">Default channel for slides, all public users can access content of this channel.</field>
+ </record>
+ <record model="slide.channel" id="channel_partial">
+ <field name="name">Partner Channel</field>
+ <field name="website_published" eval="True"/>
+ <field name="group_ids" eval="[(4, ref('base.group_portal')), (4, ref('base.group_user'))]"/>
+ <field name="upload_group_ids" eval="[(4, ref('base.group_user'))]"/>
+ <field name="visibility">partial</field>
+ <field name="description">Used to publish slides in partner network privately.</field>
+ </record>
+ <record model="slide.channel" id="channel_private">
+ <field name="name">Employee Channel</field>
+ <field name="group_ids" eval="[(4, ref('base.group_user'))]"/>
+ <field name="visibility">private</field>
+ <field name="description">Used to publish internal slides of company.</field>
+ </record>
+ </data>
+</odoo>