Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many2one account.tax.report.line.report_id from Model to TransientModel is forbidden #13

Open
drajar opened this issue Dec 8, 2019 · 17 comments

Comments

@drajar
Copy link

drajar commented Dec 8, 2019

2019-12-08 14:17:51,815 107394 WARNING odoo odoo.modules.loading: Transient module states were reset
2019-12-08 14:17:51,823 107394 ERROR odoo odoo.modules.registry: Failed to load registry
2019-12-08 14:17:51,824 107394 ERROR odoo odoo.http: Exception during JSON request handling.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 677, in dispatch
    result = self._call_function(**self.params)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 353, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 93, in wrapper
    return f(dbname, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 346, in checked_call
    result = self.endpoint(*a, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 922, in __call__
    return self.method(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 523, in response_wrap
    response = f(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1323, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1311, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 394, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 381, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "<decorator-gen-65>", line 2, in button_immediate_upgrade
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 72, in check_and_log
    return method(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 634, in button_immediate_upgrade
    return self._button_immediate_function(type(self).button_upgrade)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 578, in _button_immediate_function
    modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 85, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 416, in load_modules
    force, status, report, loaded_modules, update_module, models_to_check)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 312, in load_marked_modules
    perform_checks=perform_checks, models_to_check=models_to_check
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 195, in load_module_graph
    registry.init_models(cr, model_names, {'module': package.name})
  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 320, in init_models
    model._auto_init()
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 2464, in _auto_init
    new = field.update_db(self, columns)
  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 2385, in update_db
    raise ValueError('Many2one %s from Model to TransientModel is forbidden' % self)
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 632, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 317, in _handle_exception
    raise exception.with_traceback(None) from new_cause
ValueError: Many2one account.tax.report.line.report_id from Model to TransientModel is forbidden

@AhmedRHS
Copy link

@drajar did you find a solution for this error?

@assenovg
Copy link

I have the same error in odoo14 CE with odoo mates accounting.
The error appears when trying to activate HR-employees.

@assia12
Copy link

assia12 commented Nov 3, 2020

same error here! can anyone tell us the solution please!

@yawkk
Copy link

yawkk commented Nov 16, 2020

same here, after installing the odoo mates accounting on Odoo 14 CE

@Khanstore
Copy link

Same problem

@ayoub-aouad
Copy link

does anyone solve this problem ?

@imohamed-rizwan
Copy link

does anyone solve this problem ?

have you got answers? i'm facing same issue

@ayoub-aouad
Copy link

ayoub-aouad commented Dec 16, 2021 via email

@imohamed-rizwan
Copy link

not really brother , show me your problem i think i can hello you fixing it because i think that i fixed it my self Le jeu. 16 déc. 2021 à 13:48, Ghost Rider @.***> a écrit :

does anyone solve this problem ? have you got answers? i'm facing same issue — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#13 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AODJSHISX6GSPPKNZTMA3WLURHNYJANCNFSM4JX4OCRA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Error:
Odoo Server Error

Traceback (most recent call last):
File "/home/wedelivertest/odoo14.0/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/home/wedelivertest/odoo14.0/odoo/http.py", line 682, in dispatch
result = self._call_function(**self.params)
File "/home/wedelivertest/odoo14.0/odoo/http.py", line 358, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/wedelivertest/odoo14.0/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/home/wedelivertest/odoo14.0/odoo/http.py", line 346, in checked_call
result = self.endpoint(*a, **kw)
File "/home/wedelivertest/odoo14.0/odoo/http.py", line 911, in call
return self.method(*args, **kw)
File "/home/wedelivertest/odoo14.0/odoo/http.py", line 530, in response_wrap
response = f(*args, **kw)
File "/home/wedelivertest/odoo14.0/odoo/addons/web/controllers/main.py", line 1363, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/home/wedelivertest/odoo14.0/odoo/addons/web/controllers/main.py", line 1351, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/wedelivertest/odoo14.0/odoo/api.py", line 396, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/home/wedelivertest/odoo14.0/odoo/api.py", line 383, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "/home/wedelivertest/odoo14.0/odoo/addons/base/models/ir_module.py", line 73, in check_and_log
return method(self, *args, **kwargs)
File "/home/wedelivertest/odoo14.0/odoo/addons/base/models/ir_module.py", line 474, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/home/wedelivertest/odoo14.0/odoo/addons/base/models/ir_module.py", line 592, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/home/wedelivertest/odoo14.0/odoo/modules/registry.py", line 89, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/wedelivertest/odoo14.0/odoo/modules/loading.py", line 453, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "/home/wedelivertest/odoo14.0/odoo/modules/loading.py", line 346, in load_marked_modules
loaded, processed = load_module_graph(
File "/home/wedelivertest/odoo14.0/odoo/modules/loading.py", line 198, in load_module_graph
registry.init_models(cr, model_names, {'module': package.name}, new_install)
File "/home/wedelivertest/odoo14.0/odoo/modules/registry.py", line 389, in init_models
model._auto_init()
File "/home/wedelivertest/odoo14.0/odoo/models.py", line 2577, in _auto_init
new = field.update_db(self, columns)
File "/home/wedelivertest/odoo14.0/odoo/fields.py", line 2535, in update_db
raise ValueError('Many2one %s from Model to TransientModel is forbidden' % self)
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/wedelivertest/odoo14.0/odoo/http.py", line 638, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/wedelivertest/odoo14.0/odoo/http.py", line 314, in _handle_exception
raise exception.with_traceback(None) from new_cause
ValueError: Many2one account.tax.report.line.report_id from Model to TransientModel is forbidden

getting this error while installing base_import module

@ayoub-aouad
Copy link

ayoub-aouad commented Dec 17, 2021 via email

@odoomates
Copy link
Owner

Anyone can help us to reproduce the issues ?
share us the details here or in email

@kir-odoo
Copy link

does anyone solve this problem?

@odoomates
Copy link
Owner

@kir-odoo are you getting this error ?

@kir-odoo
Copy link

kir-odoo commented Jan 25, 2022

yes I am facing this same issue

This is my traceback :
Traceback (most recent call last):
File "/home/odoo/src/odoo/14.0/odoo/service/server.py", line 1199, in preload_registries
registry = Registry.new(dbname, update_module=update_module)
File "/home/odoo/src/odoo/14.0/odoo/modules/registry.py", line 89, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/odoo/src/odoo/14.0/odoo/modules/loading.py", line 457, in load_modules
force, status, report, loaded_modules, update_module, models_to_check)
File "/home/odoo/src/odoo/14.0/odoo/modules/loading.py", line 349, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/home/odoo/src/odoo/14.0/odoo/modules/loading.py", line 199, in load_module_graph
registry.init_models(cr, model_names, {'module': package.name}, new_install)
File "/home/odoo/src/odoo/14.0/odoo/modules/registry.py", line 405, in init_models
model._auto_init()
File "/home/odoo/src/odoo/14.0/odoo/models.py", line 2605, in _auto_init
new = field.update_db(self, columns)
File "/home/odoo/src/odoo/14.0/odoo/fields.py", line 2613, in update_db
raise ValueError('Many2one %s from Model to TransientModel is forbidden' % self)
ValueError: Many2one account.tax.report.line.report_id from Model to TransientModel is forbidden

@odoomates
Copy link
Owner

can you provide us a db backup ? to [email protected]

@kir-odoo
Copy link

Sorry!
I didn't get what do you mean by that?

@odoomates
Copy link
Owner

when we cross checked it last time, we were not able to reproduce this error. As you are getting this error, we are requesting you to share us a backup of your database, so that we can check and fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants