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

hi, I want to show "historical" sales order lines for the customer when user is creating a new sale order, so I've created a fields.function (type='one2many') in sale.order.

Everything works fine, in sale order form view I have a tree for "historical" lines for this customer.

But when creating a new order, historical lines are not refreshed until order is saved. I would like to refresh lines just after partner_id is set. How can I "recompute" functional fields inside a onchange event? I think store parm in fields.function is only for triggering events when data "in other" objetcs change, not for self...

아바타
취소

Place onchange function call in XML to fields that must cause recalculate function fields.