Skip to Content
मेन्यू
This question has been flagged

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!

Avatar
Discard
Best Answer

Hey, 

did you add the depends on the manifest

"depends": ['base', 'hr_holidays' ]


Avatar
Discard
Related Posts Replies Views Activity
2
जन॰ 25
1222
0
अग॰ 24
1334
1
अग॰ 15
6941
1
सित॰ 22
6119
0
दिस॰ 21
4724