Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Discuss
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

Inherited view cannot have Groups define on the record

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
3 Replies
3591 Tampilan
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
Buang
Marlo Jooste
Penulis

<?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
Jawaban Terbai

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
Buang
Avatar
Marlo Jooste
Penulis Jawaban Terbai

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
Buang
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
Penulis

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
Jawaban Terbai

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
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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