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

I'm currently developing something using sale_order and sale_order_line, and I have a One2many field  that changes a boolean according to the product's information. I use that boolean to change the tree view fields accordingly by adding a few more columns.

It works as it should, expect the table only updates when I add a new sale order line, which is not what I need. I need the columns to update as soon as the boolean changes (as soon as a selection is made).

Is this feasible?

Thank you.

الصورة الرمزية
إهمال
أفضل إجابة

Hi Reinaldo, have you tried using @api.onchange?

cheers,

Dries

الصورة الرمزية
إهمال
الكاتب

Hello Dries,

Yes, I had tried it, but the issue still remained. Changing the tree view fields needed something else as I found out: I would have to change the parent of the tree and not the tree itself.

It worked fine afterwards. Thank you!

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
يناير 24
5372
0
يونيو 23
1988
1
ديسمبر 22
3309
0
أبريل 22
2523
1
أبريل 19
6163