콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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
5497
0
6월 23
2073
1
12월 22
3432
0
4월 22
2619
1
4월 19
6249