Hello,
I am facing an issue when restoring a database and running Odoo.
After restoring the database, I can run Odoo without issues, but when I restart the container, I get the following error:
raise ParseError('while parsing %s:%s, somewhere inside\n%s' % (
odoo.tools.convert.ParseError: while parsing /opt/odoo16/odoo/addons/hr_holidays/data/hr_holidays_data.xml:255, somewhere inside
<record id="holiday_status_cl" model="hr.leave.type">
<field name="name">Paid Time Off</field>
<field name="requires_allocation">yes</field>
<field name="employee_requests">no</field>
<field name="leave_validation_type">both</field>
<field name="allocation_validation_type">officer</field>
<field name="leave_notif_subtype_id" ref="mt_leave"/>
<field name="allocation_notif_subtype_id" ref="mt_leave_allocation"/>
<field name="responsible_id" ref="base.user_admin"/>
<field name="icon_id" ref="hr_holidays.icon_14"/>
<field name="color">2</field>
<field name="company_id" eval="False"/>
<field name="sequence">1</field>
</record>
It seems like Odoo is unable to parse the record, and I suspect it's related to missing references or incorrect configurations.
Any suggestions on how to resolve this? Any help would be greatly appreciated!