Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4904 Zobrazení

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.

Avatar
Zrušit
Nejlepší odpověď

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

cheers,

Dries

Avatar
Zrušit
Autor

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!

Related Posts Odpovědi Zobrazení Aktivita
2
led 24
5377
0
čvn 23
2001
1
pro 22
3310
0
dub 22
2530
1
dub 19
6168