How to reference record in database by is XML id?
I'm writing a parser for an Aeroo report for expenses.
In the py code I need to make some reference to specific product categories, created within the same module via XML serialization, eg.:
<record id="park" model="product.category"> <field name="parent_id" ref="hr_expense.cat_expense"/> <field name="name">Parking tickets</field> </record>
How can I reference in the py code the category having the id "park"?