Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • e-learning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Conocimientos
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y asistencia informática
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Browse all Industries
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Services for Partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyecto
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

Invalid Operation: Error while importing module 'dental_clinical_management'

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
ubuntu22.04OdooV17
5 Respuestas
1966 Vistas
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
Mejor respuesta

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
Mejor respuesta

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
Mejor respuesta

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 Mejor respuesta

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)
Mejor respuesta

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
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
Creating User Access for Tasks in Odoo with Limited Project,Task Permissions Resuelto
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
may 24
2023
disable edit on sale order
sale.order odooV17 OdooV17
Avatar
Avatar
Avatar
3
oct 25
555
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y totalmente integrado.

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