Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

Inherited view cannot have Groups define on the record

Odebírat

Get notified when there's activity on this post

This question has been flagged
3 Odpovědi
3589 Zobrazení
Avatar
Marlo Jooste

Good day all 

I am experiencing the following issue during my migration to Odoo 16 from v15

 

Inherited view cannot have 'Groups' define on the record. Use 'groups' attributes inside the view definition

odoo\.tools\.convert\.ParseError:\ while\ parsing\ /opt/bitnami/odoo/lib/odoo-16.0.post20221015-py3.10.egg/odoo/addons/product/views/res_partner_views.xml:3


0
Avatar
Zrušit
Marlo Jooste
Autor

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_partner_property_form" model="ir.ui.view">
<field name="name">res.partner.product.property.form.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<group name="sale">
<field name="property_product_pricelist" groups="product.group_product_pricelist" attrs="{'invisible': [('is_company','=',False),('parent_id','!=',False)]}"/>
<div name="parent_pricelists" groups="product.group_product_pricelist" colspan="2" attrs="{'invisible': ['|',('is_company','=',True),('parent_id','=',False)]}">
<p>Pricelists are managed on <button name="open_commercial_entity" type="object" string="the parent company" class="oe_link"/></p>
</div>
</group>
</field>
</record>
</odoo>

Avatar
Bruno gomez
Nejlepší odpověď

good afternoon Mario,


I'm trying to upgrade from odoo15 to 16 and I'm running into the same problem. were you able to solve it? how did you achieve it?


Thank you,

All the best

0
Avatar
Zrušit
Avatar
Marlo Jooste
Autor Nejlepší odpověď

Good day. Sorry for the late response. What can I do to specifically trace which addon code is causing the problem here then. I am relatively new to Odoo. 

In the server log, I am seeing the following output, not sure if this could be related : 

2023-12-19 07:18:21,527 18606 INFO bitnami_odoo odoo.modules.loading: Loading module product (33/117)

2023-12-19 07:18:21,714 18606 INFO bitnami_odoo odoo.modules.registry: module product: creating or updating database tables

2023-12-19 07:18:22,299 18606 INFO bitnami_odoo odoo.schema: Table 'product_supplierinfo': unable to set NOT NULL on column 'partner_id'

2023-12-19 07:18:22,346 18606 INFO bitnami_odoo odoo.schema: Keep unexpected index product_template_message_main_attachment_id_index on table product_template

2023-12-19 07:18:22,346 18606 INFO bitnami_odoo odoo.schema: Keep unexpected index product_product_message_main_attachment_id_index on table product_product

2023-12-19 07:18:22,358 18606 INFO bitnami_odoo odoo.schema: Keep unexpected index decimal_precision_name_index on table decimal_precision

2023-12-19 07:18:22,361 18606 INFO bitnami_odoo odoo.schema: Keep unexpected index res_partner_message_main_attachment_id_index on table res_partner



2023-12-19 07:18:23,162 18606 CRITICAL bitnami_odoo odoo.service.server: Failed to initialize database `bitnami_odoo`.

Traceback (most recent call last):

  File "/opt/bitnami/odoo/lib/odoo-16.0.post20231219-py3.8.egg/odoo/service/server\.py",\ line\ 1299,\ in\ preload_registries

 \  \ registry\ =\ Registry\.new\(dbname,\ update_module=update_module\)

 \ File\ "",\ line\ 2,\ in\ new

 \ File\ "/opt/bitnami/odoo/lib/odoo\-16\.0\.post20231219\-py3\.8\.egg/odoo/tools/func\.py",\ line\ 87,\ in\ locked

 \  \ return\ func\(inst,\ \*args,\ \*\*kwargs\)

 \ File\ "/opt/bitnami/odoo/lib/odoo\-16\.0\.post20231219\-py3\.8\.egg/odoo/modules/registry\.py",\ line\ 90,\ in\ new

 \  \ odoo\.modules\.load_modules\(registry,\ force_demo,\ status,\ update_module\)

 \ File\ "/opt/bitnami/odoo/lib/odoo\-16\.0\.post20231219\-py3\.8\.egg/odoo/modules/loading\.py",\ line\ 484,\ in\ load_modules

 \  \ processed_modules\ \+=\ load_marked_modules\(cr,\ graph,

 \ File\ "/opt/bitnami/odoo/lib/odoo\-16\.0\.post20231219\-py3\.8\.egg/odoo/modules/loading\.py",\ line\ 372,\ in\ load_marked_modules

 \  \ loaded,\ processed\ =\ load_module_graph\(

 \ File\ "/opt/bitnami/odoo/lib/odoo\-16\.0\.post20231219\-py3\.8\.egg/odoo/modules/loading\.py",\ line\ 231,\ in\ load_module_graph

 \  \ load_data\(cr,\ idref,\ mode,\ kind='data',\ package=package\)

 \ File\ "/opt/bitnami/odoo/lib/odoo\-16\.0\.post20231219\-py3\.8\.egg/odoo/modules/loading\.py",\ line\ 71,\ in\ load_data

 \  \ tools\.convert_file\(cr,\ package\.name,\ filename,\ idref,\ mode,\ noupdate,\ kind\)

 \ File\ "/opt/bitnami/odoo/lib/odoo\-16\.0\.post20231219\-py3\.8\.egg/odoo/tools/convert\.py",\ line\ 763,\ in\ convert_file

 \  \ convert_xml_import\(cr,\ module,\ fp,\ idref,\ mode,\ noupdate\)

 \ File\ "/opt/bitnami/odoo/lib/odoo\-16\.0\.post20231219\-py3\.8\.egg/odoo/tools/convert\.py",\ line\ 829,\ in\ convert_xml_import

 \  \ obj\.parse\(doc\.getroot\(\)\)

 \ File\ "/opt/bitnami/odoo/lib/odoo\-16\.0\.post20231219\-py3\.8\.egg/odoo/tools/convert\.py",\ line\ 749,\ in\ parse

 \  \ self\._tag_root\(de\)

 \ File\ "/opt/bitnami/odoo/lib/odoo\-16\.0\.post20231219\-py3\.8\.egg/odoo/tools/convert.py", line 709, in _tag_root

    raise ParseError(msg) from None  # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback

odoo.tools.convert.ParseError: while parsing /opt/bitnami/odoo/lib/odoo-16.0.post20231219-py3.8.egg/odoo/addons/product/views/res_partner_views.xml:3

Inherited view cannot have 'Groups' define on the record. Use 'groups' attributes inside the view definition


View error context:

'-no context-'


0
Avatar
Zrušit
Mily Shajan

Check if you're using any custom addons, and replace the code snippet of xml which includes groups_id with <t groups/> attribute .

Marlo Jooste
Autor

Hi Bella

Okay, there are 11 xml files which contain the "groups_id" field name. So just to make sure I am doing this properly, do I just replace the field now with this?

<field name="t groups" eval="[(5,0,0)]" />

############

<?xml version="1.0" encoding="utf-8"?>
<odoo>

<menuitem id="account.menu_finance" name="Accounting"/>

<menuitem id="menu_account_templates"
sequence="100"
name="Templates"
parent="account.menu_finance_configuration"
groups="base.group_no_one"/>

<record id="account.menu_action_account_moves_all" model="ir.ui.menu">
<field name="groups_id" eval="[(5,0,0)]" />
</record>

</odoo>

Avatar
Cybrosys Techno Solutions Pvt.Ltd
Nejlepší odpověď

Hi,

Actually, the code comes from the module product and the views specified in the res_partner_views.xml file, the given code is in the Addon code so the current issue does not come from this code can you please make it clear that depends on the module. If the mentioned code is from your custom module then try to change the record ID and names of the given codealso please make ensure the base module is dependent on your module


Hope it helps

0
Avatar
Zrušit
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Přihlásit se
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now