summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonin Bourguignon <abo@openerp.com>2012-08-17 15:52:49 +0200
committerAntonin Bourguignon <abo@openerp.com>2012-08-17 15:52:49 +0200
commit9c811fb481a8df3cea8f9788afe222ef7bea709c (patch)
tree12bf514360c2376abb25cd72d69c0d9484259a8f
parent2045fa1bbc297105f754c058c82f769806414153 (diff)
[FIX] note: extract demo data in note_demo.xml
bzr revid: abo@openerp.com-20120817135249-mg1eovpwt3u4lli2
-rw-r--r--addons/note/__openerp__.py3
-rw-r--r--addons/note/note_data.xml209
-rw-r--r--addons/note/note_demo.xml214
3 files changed, 223 insertions, 203 deletions
diff --git a/addons/note/__openerp__.py b/addons/note/__openerp__.py
index 576d2b82f46..2241e7bd980 100644
--- a/addons/note/__openerp__.py
+++ b/addons/note/__openerp__.py
@@ -41,7 +41,7 @@ Notes can be found in the 'Home' main menu, under 'Tool' submenu.
'note_view.xml',
],
'demo': [
- "note_data.xml"
+ "note_demo.xml",
],
'css': [
'static/src/css/note.css',
@@ -49,7 +49,6 @@ Notes can be found in the 'Home' main menu, under 'Tool' submenu.
'installable': True,
'application': True,
'category': 'Tools',
- 'images': [],
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/note/note_data.xml b/addons/note/note_data.xml
index 15226bd48b0..2a40923b0f4 100644
--- a/addons/note/note_data.xml
+++ b/addons/note/note_data.xml
@@ -1,224 +1,31 @@
<?xml version="1.0"?>
<openerp>
<data>
+
<record model="note.stage" id="note_stage_today">
<field name="name">Today</field>
<field name="sequence">1</field>
- <field name="user_id" eval="ref('base.user_root')" />
+ <field name="user_id" eval="ref('base.user_root')"/>
</record>
+
<record model="note.stage" id="note_stage_tomorrow">
<field name="name">Tomorrow</field>
<field name="sequence">2</field>
- <field name="user_id" eval="ref('base.user_root')" />
+ <field name="user_id" eval="ref('base.user_root')"/>
</record>
+
<record model="note.stage" id="note_stage_week">
<field name="name">This week</field>
<field name="sequence">3</field>
- <field name="user_id" eval="ref('base.user_root')" />
+ <field name="user_id" eval="ref('base.user_root')"/>
</record>
+
<record model="note.stage" id="note_stage_month">
<field name="name">This month</field>
<field name="sequence">4</field>
- <field name="user_id" eval="ref('base.user_root')" />
- </record>
- <record model="note.note" id="note_1">
- <field name="note"><![CDATA[Buying list
- * coffee
- * fruits
- * ice cream
- * towels
- ]]>
- </field>
- <field name="note_pad"></field>
- <field name="stage_id" ref="note_stage_today" />
- <field name="user_id" eval="ref('base.user_root')" />
- </record>
- <record model="note.note" id="note_2">
- <field name="note"><![CDATA[Buying list
- * more coffee
- * tee
- * sugar
- * towels
- ]]>
- </field>
- <field name="note_pad"></field>
- <field name="stage_id" ref="note_stage_tomorrow" />
- <field name="user_id" eval="ref('base.user_root')" />
- </record>
- <record model="note.note" id="note_3">
- <field name="note"><![CDATA[Idea to develop
- * Phasellus vel eros lorem, vel tristique risus.
- * Cras elementum risus ut massa bibendum ac sollicitudin quam feugiat.
- * Phasellus ullamcorper mauris quis lectus volutpat non dignissim elit lacinia.
-
- Nulla vitae metus risus, nec placerat diam.
- Proin quis nunc sodales dolor tempus eleifend.
- Praesent iaculis libero ut orci egestas a dapibus libero ornare.
-
- * Proin at nisl sit amet ante feugiat euismod nec at orci.
- * Nam aliquam massa id neque tincidunt eu pellentesque neque euismod.
- * Proin eget mi sit amet erat tempus pellentesque.
-
- * Phasellus congue est lectus, vitae semper arcu.
- * Suspendisse sodales tortor ut odio volutpat fringilla.
- * Vestibulum mattis est quis risus dignissim sit amet faucibus nisl mattis.
- * Pellentesque ullamcorper neque neque, vitae rhoncus massa.
-
- Ut id magna massa, quis scelerisque sapien.
-
- ]]>
- </field>
- <field name="note_pad"></field>
- <field name="stage_id" ref="note_stage_week" />
- <field name="user_id" eval="ref('base.user_root')" />
- </record>
-
- <record model="note.note" id="note_4">
- <field name="note"><![CDATA[Read those books
- * Open ERP Version 6: a modern approach to integrated business management
- * Open ERP for Retail and Industrial Management
- ]]>
- </field>
- <field name="note_pad"></field>
- <field name="stage_id" ref="note_stage_month" />
- <field name="user_id" eval="ref('base.user_root')" />
- </record>
-
- <record model="note.note" id="note_6">
- <field name="note"><![CDATA[Read those books
- * Open ERP Version 6: a modern approach to integrated business management
- * Open ERP for Retail and Industrial Management
- ]]>
- </field>
- <field name="note_pad"></field>
- <field name="stage_id" ref="note_stage_month" />
- <field name="user_id" eval="ref('base.user_root')" />
+ <field name="user_id" eval="ref('base.user_root')"/>
</record>
- <record model="note.note" id="note_7">
- <field name="note"><![CDATA[Read those books
- * Open ERP Version 6: a modern approach to integrated business management
- * Open ERP for Retail and Industrial Management
- ]]>
- </field>
- <field name="note_pad"></field>
- <field name="stage_id" ref="note_stage_month" />
- <field name="user_id" eval="ref('base.user_root')" />
- </record>
- <record model="note.note" id="note_8">
- <field name="note"><![CDATA[Read those books
- * Open ERP Version 6: a modern approach to integrated business management
- * Open ERP for Retail and Industrial Management
- ]]>
- </field>
- <field name="note_pad"></field>
- <field name="stage_id" ref="note_stage_month" />
- <field name="user_id" eval="ref('base.user_root')" />
- </record>
- <record model="note.note" id="note_9">
- <field name="note"><![CDATA[Read those books
- * Open ERP Version 6: a modern approach to integrated business management
- * Open ERP for Retail and Industrial Management
- ]]>
- </field>
- <field name="note_pad"></field>
- <field name="stage_id" ref="note_stage_month" />
- <field name="user_id" eval="ref('base.user_root')" />
- </record>
- <record model="note.note" id="note_10">
- <field name="note"><![CDATA[Read those books
- * Open ERP Version 6: a modern approach to integrated business management
- * Open ERP for Retail and Industrial Management
- ]]>
- </field>
- <field name="note_pad"></field>
- <field name="stage_id" ref="note_stage_month" />
- <field name="user_id" eval="ref('base.user_root')" />
- </record>
- <record model="note.note" id="note_11">
- <field name="note"><![CDATA[Read those books
- * Open ERP Version 6: a modern approach to integrated business management
- * Open ERP for Retail and Industrial Management
- ]]>
- </field>
- <field name="note_pad"></field>
- <field name="stage_id" ref="note_stage_month" />
- <field name="user_id" eval="ref('base.user_root')" />
- </record>
- <record model="note.note" id="note_12">
- <field name="note"><![CDATA[Read those books
- * Open ERP Version 6: a modern approach to integrated business management
- * Open ERP for Retail and Industrial Management
- ]]>
- </field>
- <field name="note_pad"></field>
- <field name="stage_id" ref="note_stage_month" />
- <field name="user_id" eval="ref('base.user_root')" />
- </record>
- <record model="note.note" id="note_13">
- <field name="note"><![CDATA[Read those books
- * Open ERP Version 6: a modern approach to integrated business management
- * Open ERP for Retail and Industrial Management
- ]]>
- </field>
- <field name="note_pad"></field>
- <field name="stage_id" ref="note_stage_month" />
- <field name="user_id" eval="ref('base.user_root')" />
- </record>
- <record model="note.note" id="note_14">
- <field name="note"><![CDATA[Read those books
- * Open ERP Version 6: a modern approach to integrated business management
- * Open ERP for Retail and Industrial Management
- ]]>
- </field>
- <field name="note_pad"></field>
- <field name="stage_id" ref="note_stage_month" />
- <field name="user_id" eval="ref('base.user_root')" />
- </record>
- <record model="note.note" id="note_15">
- <field name="note"><![CDATA[Read those books
- * Open ERP Version 6: a modern approach to integrated business management
- * Open ERP for Retail and Industrial Management
- ]]>
- </field>
- <field name="note_pad"></field>
- <field name="stage_id" ref="note_stage_month" />
- <field name="user_id" eval="ref('base.user_root')" />
- </record>
- <record model="note.note" id="note_16">
- <field name="note"><![CDATA[Read those books
- * Open ERP Version 6: a modern approach to integrated business management
- * Open ERP for Retail and Industrial Management
- ]]>
- </field>
- <field name="note_pad"></field>
- <field name="stage_id" ref="note_stage_month" />
- <field name="user_id" eval="ref('base.user_root')" />
- </record>
-
-
- <record model="note.note" id="note_5">
- <field name="note"><![CDATA[New computer specs
- * Motherboard
- according to processor
- * Processor
- need to decide
- * Graphic card
- with great performance for games !
- * Hard drive
- big, for lot of internet backups
- * Tower
- silent, better when watching films
- * Blueray drive ?
- is it interesting yet ?
- * Screen
- a big one, full of pixels, of course !
- ]]>
- </field>
- <field name="note_pad"></field>
- <field name="stage_id" ref="note_stage_month" />
- <field name="user_id" eval="ref('base.user_root')" />
- </record>
</data>
</openerp>
diff --git a/addons/note/note_demo.xml b/addons/note/note_demo.xml
new file mode 100644
index 00000000000..3e960638de0
--- /dev/null
+++ b/addons/note/note_demo.xml
@@ -0,0 +1,214 @@
+<?xml version="1.0"?>
+<openerp>
+ <data>
+
+ <record model="note.note" id="note_1">
+ <field name="note"><![CDATA[Buying list
+ * coffee
+ * fruits
+ * ice cream
+ * towels
+ ]]>
+ </field>
+ <field name="note_pad"></field>
+ <field name="stage_id" ref="note_stage_today"/>
+ <field name="user_id" eval="ref('base.user_root')"/>
+ </record>
+ <record model="note.note" id="note_2">
+ <field name="note"><![CDATA[Buying list
+ * more coffee
+ * tee
+ * sugar
+ * towels
+ ]]>
+ </field>
+ <field name="note_pad"></field>
+ <field name="stage_id" ref="note_stage_tomorrow"/>
+ <field name="user_id" eval="ref('base.user_root')"/>
+ </record>
+
+ <record model="note.note" id="note_3">
+ <field name="note"><![CDATA[Idea to develop
+ * Phasellus vel eros lorem, vel tristique risus.
+ * Cras elementum risus ut massa bibendum ac sollicitudin quam feugiat.
+ * Phasellus ullamcorper mauris quis lectus volutpat non dignissim elit lacinia.
+
+ Nulla vitae metus risus, nec placerat diam.
+ Proin quis nunc sodales dolor tempus eleifend.
+ Praesent iaculis libero ut orci egestas a dapibus libero ornare.
+
+ * Proin at nisl sit amet ante feugiat euismod nec at orci.
+ * Nam aliquam massa id neque tincidunt eu pellentesque neque euismod.
+ * Proin eget mi sit amet erat tempus pellentesque.
+
+ * Phasellus congue est lectus, vitae semper arcu.
+ * Suspendisse sodales tortor ut odio volutpat fringilla.
+ * Vestibulum mattis est quis risus dignissim sit amet faucibus nisl mattis.
+ * Pellentesque ullamcorper neque neque, vitae rhoncus massa.
+
+ Ut id magna massa, quis scelerisque sapien.
+
+ ]]>
+ </field>
+ <field name="note_pad"></field>
+ <field name="stage_id" ref="note_stage_week"/>
+ <field name="user_id" eval="ref('base.user_root')"/>
+ </record>
+
+ <record model="note.note" id="note_4">
+ <field name="note"><![CDATA[Read those books
+ * Open ERP Version 6: a modern approach to integrated business management
+ * Open ERP for Retail and Industrial Management
+ ]]>
+ </field>
+ <field name="note_pad"></field>
+ <field name="stage_id" ref="note_stage_month"/>
+ <field name="user_id" eval="ref('base.user_root')"/>
+ </record>
+
+ <record model="note.note" id="note_5">
+ <field name="note"><![CDATA[New computer specs
+ * Motherboard
+ according to processor
+ * Processor
+ need to decide
+ * Graphic card
+ with great performance for games !
+ * Hard drive
+ big, for lot of internet backups
+ * Tower
+ silent, better when watching films
+ * Blueray drive ?
+ is it interesting yet ?
+ * Screen
+ a big one, full of pixels, of course !
+ ]]>
+ </field>
+ <field name="note_pad"></field>
+ <field name="stage_id" ref="note_stage_month"/>
+ <field name="user_id" eval="ref('base.user_root')"/>
+ </record>
+
+ <record model="note.note" id="note_6">
+ <field name="note"><![CDATA[Read those books
+ * Open ERP Version 6: a modern approach to integrated business management
+ * Open ERP for Retail and Industrial Management
+ ]]>
+ </field>
+ <field name="note_pad"></field>
+ <field name="stage_id" ref="note_stage_month"/>
+ <field name="user_id" eval="ref('base.user_root')"/>
+ </record>
+
+ <record model="note.note" id="note_7">
+ <field name="note"><![CDATA[Read those books
+ * Open ERP Version 6: a modern approach to integrated business management
+ * Open ERP for Retail and Industrial Management
+ ]]>
+ </field>
+ <field name="note_pad"></field>
+ <field name="stage_id" ref="note_stage_month"/>
+ <field name="user_id" eval="ref('base.user_root')"/>
+ </record>
+
+ <record model="note.note" id="note_8">
+ <field name="note"><![CDATA[Read those books
+ * Open ERP Version 6: a modern approach to integrated business management
+ * Open ERP for Retail and Industrial Management
+ ]]>
+ </field>
+ <field name="note_pad"></field>
+ <field name="stage_id" ref="note_stage_month"/>
+ <field name="user_id" eval="ref('base.user_root')"/>
+ </record>
+
+ <record model="note.note" id="note_9">
+ <field name="note"><![CDATA[Read those books
+ * Open ERP Version 6: a modern approach to integrated business management
+ * Open ERP for Retail and Industrial Management
+ ]]>
+ </field>
+ <field name="note_pad"></field>
+ <field name="stage_id" ref="note_stage_month"/>
+ <field name="user_id" eval="ref('base.user_root')"/>
+ </record>
+
+ <record model="note.note" id="note_10">
+ <field name="note"><![CDATA[Read those books
+ * Open ERP Version 6: a modern approach to integrated business management
+ * Open ERP for Retail and Industrial Management
+ ]]>
+ </field>
+ <field name="note_pad"></field>
+ <field name="stage_id" ref="note_stage_month"/>
+ <field name="user_id" eval="ref('base.user_root')"/>
+ </record>
+
+ <record model="note.note" id="note_11">
+ <field name="note"><![CDATA[Read those books
+ * Open ERP Version 6: a modern approach to integrated business management
+ * Open ERP for Retail and Industrial Management
+ ]]>
+ </field>
+ <field name="note_pad"></field>
+ <field name="stage_id" ref="note_stage_month"/>
+ <field name="user_id" eval="ref('base.user_root')"/>
+ </record>
+
+ <record model="note.note" id="note_12">
+ <field name="note"><![CDATA[Read those books
+ * Open ERP Version 6: a modern approach to integrated business management
+ * Open ERP for Retail and Industrial Management
+ ]]>
+ </field>
+ <field name="note_pad"></field>
+ <field name="stage_id" ref="note_stage_month"/>
+ <field name="user_id" eval="ref('base.user_root')"/>
+ </record>
+
+ <record model="note.note" id="note_13">
+ <field name="note"><![CDATA[Read those books
+ * Open ERP Version 6: a modern approach to integrated business management
+ * Open ERP for Retail and Industrial Management
+ ]]>
+ </field>
+ <field name="note_pad"></field>
+ <field name="stage_id" ref="note_stage_month"/>
+ <field name="user_id" eval="ref('base.user_root')"/>
+ </record>
+
+ <record model="note.note" id="note_14">
+ <field name="note"><![CDATA[Read those books
+ * Open ERP Version 6: a modern approach to integrated business management
+ * Open ERP for Retail and Industrial Management
+ ]]>
+ </field>
+ <field name="note_pad"></field>
+ <field name="stage_id" ref="note_stage_month"/>
+ <field name="user_id" eval="ref('base.user_root')"/>
+ </record>
+
+ <record model="note.note" id="note_15">
+ <field name="note"><![CDATA[Read those books
+ * Open ERP Version 6: a modern approach to integrated business management
+ * Open ERP for Retail and Industrial Management
+ ]]>
+ </field>
+ <field name="note_pad"></field>
+ <field name="stage_id" ref="note_stage_month"/>
+ <field name="user_id" eval="ref('base.user_root')"/>
+ </record>
+
+ <record model="note.note" id="note_16">
+ <field name="note"><![CDATA[Read those books
+ * Open ERP Version 6: a modern approach to integrated business management
+ * Open ERP for Retail and Industrial Management
+ ]]>
+ </field>
+ <field name="note_pad"></field>
+ <field name="stage_id" ref="note_stage_month"/>
+ <field name="user_id" eval="ref('base.user_root')"/>
+ </record>
+
+ </data>
+</openerp>