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

Hi,

I have a one2many field in a view, to which I want to add some entries depending on another field.

Using @api.onchange and adding them as [(0, 0, values), (0, 0, values)] works fine.

BUT! Only the values visible in my form are added! If I open the full co_model (in overlay) the rest is missing.

No matter if I have the one2many field simple or as tree, added to my form.

Only the fields visible on the "mother form" will be added from "values".


I can imagine this is because the one2many entries are "transient" still evertyhing is writen to DB.

But have I any chance to get all values to the new entries without repeating the fields invisble in my form?!


Is this a bug or a design limitation?!


Thanks!

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يناير 25
2339
2
سبتمبر 22
10016
2
أبريل 22
4969
0
يوليو 21
7650
1
مارس 21
5353