Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
616 มุมมอง

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!

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hey, 

did you add the depends on the manifest

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


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ม.ค. 25
1226
0
ส.ค. 24
1340
1
ส.ค. 15
6948
1
ก.ย. 22
6130
0
ธ.ค. 21
4726