Skip to content

Commit a9aebb0

Browse files
committed
Deleting records from XML files
1 parent b3fd114 commit a9aebb0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

local-addons/my_library/data/data.xml

+9
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,13 @@
1414
<field name="city">Birmingham</field>
1515
<field name="country_id" ref="base.uk" />
1616
</record>
17+
18+
<record id="book_category_to_delete" model="library.book.category">
19+
<field name="name">Test Category</field>
20+
</record>
21+
<record id="book_category_not_delete" model="library.book.category">
22+
<field name="name">Test Category 2</field>
23+
</record>
24+
25+
<delete model="library.book.category" id="book_category_to_delete" />
1726
</odoo>

0 commit comments

Comments
 (0)