Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2264 Zobrazení

Hey when we are trying to upgrade our odoo to 16 we are suddenly getting this error:

odoo.tools.convert.ParseError: while parsing /home/odoo/odoo/odoo/addons/hemma/views/res_partner_views.xml:3341Fel vid validering av vy nära:342

343
344 A partner with the same Tax ID already exists (345 346 ), are you sure to create a new one?347Fältet "l10n_se_check_vendor_ocr" finns inte i modellen "res.partner"348View error context:349{'file': '/home/odoo/odoo/odoo/addons/hemma/views/res_partner_views.xml',350 'line': 3,351 'name': 'view.hemma.res.partner.form.inherited',352 'view': ir.ui.view(1565,),353 'view.model': 'res.partner',354 'view.parent': ir.ui.view(1730,),355 'xmlid': 'view_hemma_partner_form'}


This is our code:

id="view_hemma_partner_form" model="ir.ui.view">
name="name">view.hemma.res.partner.form.inherited
name="model">res.partner
name="inherit_id" ref="account.view_partner_property_form"/>
eval="1" name="priority"/>
name="arch" type="xml">
expr="//form//sheet" position="before">




expr="//div[hasclass('oe_button_box')]/button" position="before">
name="customer_rank" eval="0"/>




string="Web" name="web" autofocus="True"
attrs="{'invisible': [('customer_rank', '=', 0)]}">


name="login_enabled" string="Access Mina Sidor"/>


name="is_affiliate" string="Access Affiliate leads API"/>
name="application_request_notification_path"/>
name="lead_notification_email"/>








Avatar
Zrušit
Nejlepší odpověď

Hi,

Please add l10_se as a dependent module for your custom module hemma and see if the issue will get resolved or not.

Thanks


Avatar
Zrušit
Autor

Hey, we already have that as an dependency

go the views menu and search inside view architecture and see in which all views this field has been added, did you directly added this field to any of the base views from ui ?

Autor

thanks for replying, the record in defined in base odoo in l10n_se/views/partner_views.xml:

id="res_partner_ocr_form" model="ir.ui.view">
name="name">res.partner.ocr.form
name="model">res.partner
name="inherit_id" ref="account.view_partner_property_form"/>
name="arch" type="xml">
name="accounting_entries" position="after">
string="Payment Options Sweden" name="payment_options">
name="l10n_se_check_vendor_ocr"/>
name="l10n_se_default_vendor_payment_ref"/>

This record didn't exist in odoo 14/15, is that why it's crashing?

Related Posts Odpovědi Zobrazení Aktivita
3
čvn 24
2906
2
říj 23
4032
1
led 23
15084
1
lis 15
4356
1
dub 24
2995