Skip to Content
Menu
This question has been flagged
1 Odpoveď
5084 Zobrazenia

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

Avatar
Zrušiť
Best Answer

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! :)

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
mar 22
3699
2
aug 21
7213
2
júl 21
4080
0
apr 21
3445
1
jan 21
3980