Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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"/>








Awatar
Odrzuć
Najlepsza odpowiedź

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


Awatar
Odrzuć
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?

Powiązane posty Odpowiedzi Widoki Czynność
3
cze 24
2864
2
paź 23
3989
1
sty 23
15037
1
lis 15
4330
1
kwi 24
2973