There was a lot of talk about XML IDs already, without specifying what an XML ID is. This recipe will give a deeper understanding of this.
We write into already existing records to demonstrate how to use cross module references:
'data': [ 'data/res_partner.xml', ],
<record id="base.main_company" model="res.company"> <field name="name">Packt publishing</field> </record>
<record id="book_cookbook" model="library.book"> <field name="publisher_id" ref="base.main_partner" /> </record>
On installation of this module, the company will be renamed and the book from the next recipe will be assigned ...