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

In stock picking form, i'm having origin field with type char and many2one . I need to automatically fetch value from origin to many2one whenever it gets changed.

Any help is appreciatable!

아바타
취소
작성자 베스트 답변

Thank God, i found answer by myself.

class sale_order(models.Model):
_inherit = 'sale.order'
def action_confirm(self):
res = super(sale_order, self).action_confirm()
for rec in self:
rec.picking_ids.write({'m2o': rec.id})
return res
아바타
취소
관련 게시물 답글 화면 활동
3
9월 25
3391
0
8월 25
897
1
8월 25
3163
2
7월 25
8783
2
7월 25
5140