تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
8219 أدوات العرض

ERROR modoo odoo.modules.registry: Failed to load registry

......

File "D:\odooproject\odoo13\odoo\fields.py", line 2927, in update_db

    raise UserError(_("No inverse field %r found for %r") % (self.inverse_name, self.comodel_name))

odoo.exceptions.UserError: ("未找到None对应的字段'subjects'", '')


I add a new Class 'Subject' to my module.

And ,when I open it, I get this error.

What‘s the cause of the error?

How can I do it?

الصورة الرمزية
إهمال

Hello,

can you please share your code of new class"subject" , this error generally comes when there issue in relation field i.e one2many.

الكاتب أفضل إجابة

Yes, It is One2many that caused this issue.I use Many2one instead,and it works.

Thanks for your reply.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 25
2511
0
مايو 23
2278
3
مارس 25
23845
1
نوفمبر 22
2177
1
مايو 22
5693