跳至內容
選單
此問題已被標幟
1 回覆
4901 瀏覽次數

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
1月 24
5374
0
6月 23
1992
1
12月 22
3309
0
4月 22
2526
1
4月 19
6168