Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
1683 Lượt xem

RPC_ERROR

Odoo Server Error

Traceback (most recent call last):

  File "F:\odoo intsallation\server\odoo\registry.py", line 213, in __getitem__

    return self.models[model_name]

KeyError: 'my.model'


The above server error caused the following client error:

OwlError: The following error occurred in onWillStart: 

    at wrapError (http://localhost:8069/web/assets/96f4cae/web.assets_web.min.js:1044:77)

    at onWillStart (http://localhost:8069/web/assets/96f4cae/web.assets_web.min.js:1050:117)

    at View.setup (http://localhost:8069/web/assets/96f4cae/web.assets_web.min.js:9811:292)

    at new ComponentNode (http://localhost:8069/web/assets/96f4cae/web.assets_web.min.js:1002:202)

    at http://localhost:8069/web/assets/96f4cae/web.assets_web.min.js:1540:6

    at ControllerComponent.template (eval at compile (http://localhost:8069/web/assets/96f4cae/web.assets_web.min.js:1500:374), :11:27)

    at Fiber._render (http://localhost:8069/web/assets/96f4cae/web.assets_web.min.js:940:96)

    at Fiber.render (http://localhost:8069/web/assets/96f4cae/web.assets_web.min.js:939:6)

    at ComponentNode.initiateRender (http://localhost:8069/web/assets/96f4cae/web.assets_web.min.js:1007:47)


Caused by: RPC_ERROR://localhost:8069/web/assets/96f4cae/web.assets_web.min.js:2872:163)

    at XMLHttpRequest. (http://localhost:8069/web/assets/96f4cae/web.assets_web.min.js:2876:13)

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Please make sure a model named "my.model" is actually defined in your Odoo.

If the model exists, ensure it's properly registered with the Odoo registry using the @api.model decorator or the odoo.models.Model class.

Sometimes a simple restart of the Odoo server can resolve temporary issues.



Ảnh đại diện
Huỷ bỏ
Tác giả

hoe to ensure that my model is registered properly?

Tác giả

Hi Ajin,
If it is possible then can we connect manually it is so grateful to u?

Câu trả lời hay nhất

Hi,
Check for the usage of "my.model" inside the custom codes and see it those are written in the valid format/syntax.

Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả

in the database table is created with name my_model but while filling the form getting the above error. if is it possible can we connect maually to do the setup it is very grateful to you .

so check for the further usages of my.model in the code

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 24
1751
4
thg 5 25
2427
2
thg 5 25
5757
1
thg 3 25
1610
4
thg 3 25
4401