Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Invalid Operation: Error while importing module 'dental_clinical_management'

Subscriure's

Get notified when there's activity on this post

This question has been flagged
ubuntu22.04OdooV17
5 Respostes
1961 Vistes
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
Descartar
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

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
Descartar
Avatar
Marvin Accuweb.Cloud
Best Answer

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
Descartar
Avatar
Ruchita
Best Answer

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
Descartar
Avatar
ANDREW K
Autor Best Answer

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
Descartar
Avatar
Niyas Raphy (Walnut Software Solutions)
Best Answer

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
Descartar
Enjoying the discussion? Don't just read, join in!

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

Registrar-se
Related Posts Respostes Vistes Activitat
Creating User Access for Tasks in Odoo with Limited Project,Task Permissions Solved
v17 OdooV17
Avatar
Avatar
1
de febr. 25
13226
connect() failed (111: Unknown error) while connecting to upstream in odoo 16 and ubuntu 22
ubuntu22.04 odoov16
Avatar
0
de nov. 24
2400
odoo v17 How to add an image and uom in a PDF list bom
OdooV17 Studio17
Avatar
0
de nov. 24
1778
Je veux faire une migration de JS odoo 15 vers 17
migrate OdooV17
Avatar
0
de maig 24
2019
disable edit on sale order
sale.order odooV17 OdooV17
Avatar
Avatar
Avatar
3
d’oct. 25
555
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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