Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
11979 Lượt xem
  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 2830, in convert_to_read
    return value.id
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 658, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 301, in _handle_exception
    raise exception.with_traceback(None) from new_cause
AttributeError: '_unknown' object has no attribute 'id'

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

Hi,
Normally this error is raised when the dependency for the comodel is missing a X2many fields or missing to define the co model in X2many fields.

SO definitely the error is coming from a custom module, so check and verify all the custom codes are written and added correctly.

Thanks

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 10 24
12154
2
thg 12 24
1384
1
thg 5 25
887
2
thg 2 25
9711
0
thg 9 24
1051