Skip to content

Commit 9005b5f

Browse files
committed
Using external IDs and namespaces
1 parent ebed992 commit 9005b5f

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

local-addons/my_library/__manifest__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
'security/groups.xml',
1212
'security/ir.model.access.csv',
1313
'views/library_book.xml',
14-
'views/library_book_categ.xml'
14+
'views/library_book_categ.xml',
15+
'data/data.xml'
1516
],
1617
}

local-addons/my_library/data/data.xml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<odoo>
3+
<record id="book_cookbook" model="library.book">
4+
<field name="name">Odoo 14 Development Cookbook</field>
5+
<field name="short_name">Odoo 14 Development Cookbook</field>
6+
</record>
7+
8+
<record id="base.main_company" model="res.company">
9+
<field name="name">Packt publishing</field>
10+
</record>
11+
</odoo>

0 commit comments

Comments
 (0)