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

When I am creating a new editable Tree/List view for my new model but when I add the widget="selection" in many2one field in the view,i get an error while clicking on the existing data of the model.The error is as below:

Uncaught TypeError: Cannot read property '0' of undefined
http://localhost:8069/web/static/src/js/fields/relational_fields.js:2366
Traceback:
TypeError: Cannot read property '0' of undefined
at Class._renderEdit (http://localhost:8069/web/static/src/js/fields/relational_fields.js:2366:53)
at Class._render (http://localhost:8069/web/static/src/js/fields/abstract_field.js:416:25)
at http://localhost:8069/web/static/src/js/fields/abstract_field.js:204:25
at http://localhost:8069/web/static/lib/jquery/jquery.js:3276:89
at fire (http://localhost:8069/web/static/lib/jquery/jquery.js:3119:58)
at Object.add [as done] (http://localhost:8069/web/static/lib/jquery/jquery.js:3165:49)
at Array. (http://localhost:8069/web/static/lib/jquery/jquery.js:3275:77)
at Function.each (http://localhost:8069/web/static/lib/jquery/jquery.js:383:58)
at Object. (http://localhost:8069/web/static/lib/jquery/jquery.js:3272:56)
at Function.Deferred (http://localhost:8069/web/static/lib/jquery/jquery.js:3332:30)
Thanks in advance

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

what was the many2one model ?

الكاتب

Here, many2one model is res.groups.

المنشورات ذات الصلة الردود أدوات العرض النشاط
3
أكتوبر 23
5829
6
أكتوبر 20
3662
report in quality تم الحل
3
مايو 19
3126
3
فبراير 22
11498
3
يونيو 21
1021