Skip to Content
Menu
This question has been flagged

Quelles sont les étapes à suivre pour reproduire votre problème ?

in Application, CRM App. > uninstall

Quel est le comportement actuel que vous observez ?
image 1 in attach
Can t Unsintall : ERROR (image 1 in attach):
French : ('Enregistrement inexistant ou détruit.\n(Enregistrement: ir.model.fields(9311,), Utilisateur: 1)', None)
English : Record does not exist or has been deleted (Record: ir.model.fields(9311,), User: 1)', None)

Same Bug was reported several times but still not fixed :
* image 2 in attach : https://github.com/odoo/odoo/issues/38008
* image 3 in attach

The Bug fix seems to be applied on v14 but not on v13 ? : https://github.com/odoo/odoo/commit/85c2a18dae3f31daad05f16053277d1b30a4bedb

Quel serait le comportement attendu dans ce cas ?
Since there is no dependance in other modules, we should have the possibility and right to remove it (we don t need this App).

**************** TRACEBACK **************
2021-06-18 14:21:52,779 6 INFO samadeva-oerp-brstaging-2702918 odoo.addons.base.models.ir_module: ALLOW access to module.module_uninstall on ['sale_crm', 'crm_enterprise', 'crm_sms', 'website_crm', 'website_crm_sms', 'mass_mailing_crm', 'crm'] to user __system__ #1 via 86.243.106.83
2021-06-18 14:21:52,800 6 WARNING samadeva-oerp-brstaging-2702918 odoo.modules.loading: Transient module states were reset
2021-06-18 14:21:52,801 6 ERROR samadeva-oerp-brstaging-2702918 odoo.modules.registry: Failed to load registry
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/api.py", line 745, in get
def get(self, record, field, default=NOTHING):
value = self._data[field][record._ids[0]]
KeyError: 9311

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/fields.py", line 1037, in __get__
value = env.cache.get(record, self)
File "/home/odoo/src/odoo/odoo/api.py", line 751, in get
raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: ('ir.model.fields(9311,).model', None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/modules/registry.py", line 86, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/odoo/src/odoo/odoo/modules/loading.py", line 494, in load_modules
Module.browse(modules_to_remove.values()).module_uninstall()
File "", line 2, in module_uninstall
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_module.py", line 73, in check_and_log
return method(self, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_module.py", line 478, in module_uninstall
self.env['ir.model.data']._module_data_uninstall(modules_to_remove)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_model.py", line 1898, in _module_data_uninstall
model = self.pool.get(ir_field.model)
File "/home/odoo/src/odoo/odoo/fields.py", line 1050, in __get__
_("(Record: %s, User: %s)") % (record, env.uid),
odoo.exceptions.MissingError: ('Enregistrement inexistant ou détruit.\n(Enregistrement: ir.model.fields(9311,), Utilisateur: 1)', None)
2021-06-18 14:21:52,803 6 WARNING samadeva-oerp-brstaging-2702918 odoo.http: ('Enregistrement inexistant ou détruit.\n(Enregistrement: ir.model.fields(9311,), Utilisateur: 1)', None)
ENGLISH : Record does not exist or has been deleted (Record: ir.model.fields(9311,), User: 1)', None)

Avatar
Discard
Related Posts Replies Views Activity
3
Nov 24
1840
2
Nov 24
254
12
Jul 24
154725
2
Jun 24
518
2
Jan 24
5010