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
    • Diskusi
    • 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

Invalid Operation: Error while importing module 'dental_clinical_management'

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
ubuntu22.04OdooV17
5 Replies
1965 Tampilan
Avatar
ANDREW K

I'm getting this error when installing a third party app from the store.


Error while importing module 'dental_clinical_management'.

 while parsing /tmp/tmp9uhqovdm/dental_clinical_management/security/dental_clinical_management_security.xml:4, somewhere inside
<record id="own_dental_appointments" model="ir.rule">
        <field name="name">Own Appointments</field>
        <field name="model_id" ref="model_dental_appointment"/>
        <field name="domain_force">[('doctor_id.user_id', '=', user.id)]</field>
        <field name="groups" eval="[Command.link(ref('dental_clinical_management.group_dental_doctor'))]"/>
    </record> 

I have checked that all app dependencies are installed.

If I install the app using the method described in this post (forum/help-1/install-3rd-party-app-176360) then I can't see the app in the menu list unless I have superuser activated.

How can I fix this? Appreciate any help/advice.

0
Avatar
Buang
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Jawaban Terbai

Hi,

Please refer to the code below:


<record id="own_dental_appointments" model="ir.rule">

    <field name="name">Own Appointments</field>

    <field name="model_id" ref="model_dental_appointment"/>

    <field name="domain_force">[('doctor_id.user_id', '=', user.id)]</field>

    <field name="groups" eval="[(4,

    ref('dental_clinical_management.group_dental_doctor')]"/>

</record>


Hope it helps.

0
Avatar
Buang
Avatar
Marvin Accuweb.Cloud
Jawaban Terbai

Hi Andrew,

The error you're getting is because Odoo can't find the model reference model_dental_appointment during module installation. This usually happens when the model isn't defined or loaded before the security file is parsed.

Make sure your model class is defined like this:

class DentalAppointment(models.Model):

    _name = 'dental.appointment'


Odoo auto-generates model_dental_appointment from _name = 'dental.appointment'. Also check your __manifest__.py and ensure the model is loaded before the XML file. The usual order is:

'data': [

    'security/ir.model.access.csv',

    'security/dental_clinical_management_security.xml',

    'views/...',

]


For the app not showing in the menu , activate Developer Mode, go to Settings > Users, open your user, and make sure you're added to the right group (like Dental Doctor). If the group isn't assigned, the menus will be hidden for normal users.

Thanks

0
Avatar
Buang
Avatar
Ruchita
Jawaban Terbai

The error “Invalid Operation: Error while importing module 'dental_clinical_management'” means there’s a problem in your module code. Check the following:

  • Make sure __init__.py and __manifest__.py are correct.
  • Look for any syntax or import errors in your Python files.
  • Ensure all dependencies are listed in depends and installed.
  • Verify your XML files are well-formed and listed in data.
  • Follow the correct folder structure (models, views, etc.

0
Avatar
Buang
Avatar
ANDREW K
Penulis Jawaban Terbai

Hi Niyas,

Thanks for the suggestion. The app is installed.

However, as you predicted, I can't see the app. I tried to activate the user groups as you suggested. I tried Settings > Users & Companies > Groups but there's no option to activate the groups.

Sorry, I am noob to Odoo. Appreciate if you could point me in the right direction.

Thanks

0
Avatar
Buang
Avatar
Niyas Raphy (Walnut Software Solutions)
Jawaban Terbai

Hi,
Seems you are importing the app from the user interface, which is not a recommend and supported method, if there is python files in the app.

In this case, you have opt (may be you already done),
* Download the app
* Extract it and add to addons path
* restart the odoo service
* hit update app list and install the app

After installing, if you are not able to see the app, there may be some user groups, you need to activate, which you can see from the users form view

Thanks 

0
Avatar
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

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

Daftar
Post Terkait Replies Tampilan Aktivitas
Creating User Access for Tasks in Odoo with Limited Project,Task Permissions Diselesaikan
v17 OdooV17
Avatar
Avatar
1
Feb 25
13234
connect() failed (111: Unknown error) while connecting to upstream in odoo 16 and ubuntu 22
ubuntu22.04 odoov16
Avatar
0
Nov 24
2404
odoo v17 How to add an image and uom in a PDF list bom
OdooV17 Studio17
Avatar
0
Nov 24
1783
Je veux faire une migration de JS odoo 15 vers 17
migrate OdooV17
Avatar
0
Mei 24
2023
disable edit on sale order
sale.order odooV17 OdooV17
Avatar
Avatar
Avatar
3
Okt 25
555
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