Github Code link
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "E:\Geopack\server\odoo\http.py", line 1782, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Geopack\server\odoo\service\model.py", line 133, in retrying
result = func()
^^^^^^
File "E:\Geopack\server\odoo\http.py", line 1809, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Geopack\server\odoo\http.py", line 2013, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Geopack\server\odoo\addons\base\models\ir_http.py", line 221, in _dispatch
result = endpoint(**request.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Geopack\server\odoo\http.py", line 757, in route_wrapper
result = endpoint(self, *args, **params_ok)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Geopack\server\odoo\addons\web\controllers\dataset.py", line 28, in call_button
action = self._call_kw(model, method, args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Geopack\server\odoo\addons\web\controllers\dataset.py", line 20, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Geopack\server\odoo\api.py", line 468, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Geopack\server\odoo\api.py", line 453, in _call_kw_multi
result = method(recs, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Geopack\python\Lib\site-packages\decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Geopack\server\odoo\addons\base\models\ir_module.py", line 75, in check_and_log
return method(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Geopack\server\odoo\addons\base\models\ir_module.py", line 469, in button_immediate_install
return self._button_immediate_function(self.env.registry[self._name].button_install)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Geopack\server\odoo\addons\base\models\ir_module.py", line 593, in _button_immediate_function
registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Geopack\python\Lib\site-packages\decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Geopack\server\odoo\tools\func.py", line 87, in locked
return func(inst, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Geopack\server\odoo\modules\registry.py", line 114, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "E:\Geopack\server\odoo\modules\loading.py", line 480, in load_modules
processed_modules += load_marked_modules(env, graph,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Geopack\server\odoo\modules\loading.py", line 364, in load_marked_modules
loaded, processed = load_module_graph(
^^^^^^^^^^^^^^^^^^
File "E:\Geopack\server\odoo\modules\loading.py", line 205, in load_module_graph
registry.init_models(env.cr, model_names, {'module': package.name}, new_install)
File "E:\Geopack\server\odoo\modules\registry.py", line 573, in init_models
model._auto_init()
File "E:\Geopack\server\odoo\models.py", line 3156, in _auto_init
new = field.update_db(self, columns)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Geopack\server\odoo\fields.py", line 3031, in update_db
raise ValueError('Many2one %s from Model to TransientModel is forbidden' % self)
ValueError: Many2one attendance.field.mapping.config_id from Model to TransientModel is forbidden
The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
RPC_ERROR
at makeErrorFromResponse (http://localhost:8069/web/assets/c1ea830/web.assets_web.min.js:2896:163)
at XMLHttpRequest.<anonymous> (http://localhost:8069/web/assets/c1ea830/web.assets_web.min.js:2900:13)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Hi,
you can't have a Many2one field from a regular model (which is stored in the database permanently) to a TransientModel (which is temporary, like a wizard). TransientModels are usually used for temporary data, like in wizards, and aren't meant to have permanent references from regular models.
So the error is pointing to a field named 'config_id' in the model 'attendance.field.mapping' that's a Many2one to a TransientModel. That's not allowed because TransientModels can be deleted, and having a permanent reference to them could cause integrity issues.
Regards,
NIZAMUDHEEN MJ.
Accurates
thanks for your replies, greatful
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
0
thg 6 25
|
35 | ||
|
2
thg 5 25
|
1050 | ||
|
1
thg 5 25
|
878 | ||
|
0
thg 3 25
|
36 | ||
|
0
thg 3 25
|
652 |