İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
615 Görünümler

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
Vazgeç
En İyi Yanıt

Hey, 

did you add the depends on the manifest

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


Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Oca 25
1226
0
Ağu 24
1340
1
Ağu 15
6948
1
Eyl 22
6130
0
Ara 21
4725