Ir al contenido
Menú
Se marcó esta pregunta
5 Respuestas
4585 Vistas

I hope that someone can help.  

I'm on: Odoo.SH, version 17 and running GitHub and GitHub Code.

I get this error message when I try to view a custom module in the apps. 

(Click on the three dots, module-info)


Error message: Can't fetch record(s) 1121. They might have been deleted.

My manifest file looks like:

{

    'name': 'Management System',

    'version':'1.0',

    'author': 'Noyau',

    'website': 'https://www.noyau.co.za',

    'summary': 'Management for business',

    'description': """Management for business""",

    'category': 'Services',

    'depends':[

        'base',

        'contacts',

        'portal',

    ],

    'data':[

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

        'views/business_view.xml',

        'views/business_contracts.xml',

        'views/business_finances.xml',

        'views/menu.xml',

    ],

    'installable': True,

    'application': True,

    'license':'LGPL-3',

}

What is the problem?  Why can't I view my custom module?

And none of my scripts want to run (e.g. start date must be less than the end date).  Is this the reason?

Avatar
Descartar
Mejor respuesta

this is because the module_type field is not set and should default to official, but I think this happens because the database already exists and we have a new module and the module_type field is not set automatically. we can fix this by using a server action.


modules = env['ir.module.module'].search([('module_type', '=', False)])

modules.write({'module_type': 'official'})


or by using sql:


UPDATE ir_module_module set module_type ='offical' where module_type is Null;



Avatar
Descartar
Mejor respuesta

This might be conflict within when changes source code. You must update database 
'update ir_module_module set module_type='official' where module_type is Null;'
 
This'll be ok. Test it.

Avatar
Descartar

And how do I update my Odoo.sh database? I am having the same issue

@Maximiliano you can go to shell and type psql from your odoo.sh

Mejor respuesta

I had same probleme on Odoo17, the bug is related to base_import_module module.

If you uninstall it it will be fixed.

Avatar
Descartar
Mejor respuesta

Apparently, when i tried to open or see the related module through list view it goes with no problem. The issue might related on the kanban view, but not sure though.

Avatar
Descartar
Autor Mejor respuesta

Interestingly enough, I tried with nothing in the init file,  just the name and the non-data/non-dynamic entries in the manifest and nothing else (no folders, no anything) and I still got the error.

Update: the record number is the number of my development and the error is a missing file or missing information in a file?

Update: the developer at Odoo said that it might be because there is something going wrong with the module and the installation/app doesn't like it.  

Update: the developer was right... I fixed all of the bits and pieces that I thought was unnecessary (like warnings) and it worked!

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
nov 24
821
3
jul 25
2206
3
jun 25
2457
1
jun 25
2836
2
may 25
2181