Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4536 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Mar 22
3480
2
Agu 21
6651
2
Jul 21
3706
0
Apr 21
3172
1
Jan 21
3785