跳至內容
選單
此問題已被標幟
1 回覆
4561 瀏覽次數

Hej, im creating a custom module in odoo 14, im currently following the tutorial, and im in chapter 6.

My problems comes when im trying to start the server with the implementation for action, and the problem is taht it failed to load registry:
28062 ERROR mydb odoo.modules.registry: Failed to load registry

Traceback (most recent call last):

  File "/opt/odoo/odoo/tools/convert.py", line 677, in _tag_root

    f(rec)

  File "/opt/odoo/odoo/tools/convert.py", line 580, in _tag_record

    record = model._load_records([data], self.mode == 'update')

  File "/opt/odoo/odoo/models.py", line 4265, in _load_records

    records = self._load_records_create([data['values'] for data in to_create])

  File "/opt/odoo/odoo/models.py", line 4170, in _load_records_create

    return self.create(values)

  File "", line 2, in create

  File "/opt/odoo/odoo/api.py", line 353, in _model_create_multi

    return create(self, arg)

  File "/opt/odoo/odoo/addons/base/models/ir_ui_view.py", line 474, in create

    raise ValidationError(_('Missing view architecture.'))

odoo.exceptions.ValidationError: Missing view architecture.

Im not sure if it relates to the action python file i have created

頭像
捨棄
最佳答案

Hello Thomas,

The error indicates that the issue is typically present in your XML file where you might have defined the view for the model. Try reiterating over your code, look for any syntax errors or incorrect view definitions.
Errors are a part of learning, Have a nice day! :)

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
3月 22
3495
2
8月 21
6678
2
7月 21
3724
0
4月 21
3183
1
1月 21
3792