Skip to content

Commit 2fc788b

Browse files
committed
Demo data.
1 parent 6948881 commit 2fc788b

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

__manifest__.py

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
'views/book_list_template.xml',
1313
'views/book_category_view.xml',
1414
],
15+
'demo': [
16+
'data/res.partner.csv',
17+
'data/library.book.csv',
18+
'data/book_demo.xml',
19+
],
1520
'application': True,
1621
'installable': True
1722
}

data/book_demo.xml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<odoo noupdate="1">
3+
<record model="res.partner" id="res_partner_huxley">
4+
<field name="name">Aldous Huxley</field>
5+
</record>
6+
<record model="library.book" id="library_book_bnw">
7+
<field name="name">Brave New World</field>
8+
<field name="author_ids"
9+
eval="[(4, ref('res_partner_huxley'))]" />
10+
<field name="date_published">1932-01-01</field>
11+
</record>
12+
</odoo>

data/library.book.csv

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
id,name,date_published,publisher_id/id,author_ids/id
2+
library_book_ode11,Odoo Development Essentials 11,2018-03-01,res_partner_packt,res_partner_daniel
3+
library_book_odc11,Odoo 11 Development Cookbook,2018-01-01,res_partner_packt,res_partner_alexandre,res_partner_holger

data/res.partner.csv

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
id,name
2+
res_partner_alexandre,"Alexandre Fayolle"
3+
res_partner_daniel,"Daniel Reis"
4+
res_partner_holger,"Holger Brunn"
5+
res_partner_packt,"Packt Publishing"

0 commit comments

Comments
 (0)