xxxxxxxxxx
<odoo>
<record id="id1" model="tutorial.example">
<field name="related_id" ref="module.relatedid"/>
</record>
</odoo>
It will call the ref method, and store the id of the record returned on the field related_id
In python code, you can use the
env.ref(self, xml_id, raise_if_not_found=True)