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

I need help in code, How do I create Purchase Order copy(Sub Purchase Order) after clicking Receive Products Button on Purchase App. I'm new in Odoo so my coding skill is not that good

아바타
취소

What is your actual scenario? Maybe there will be a workaround in Odoo.

베스트 답변

Hi,

You can use self.copy in the button action of the Receive Products.

Try this example

def action_view_picking(self):
purchase_copy = self.copy()
return self._get_action_view_picking(self.picking_ids)

Regards

아바타
취소
관련 게시물 답글 화면 활동
1
7월 21
3697
1
10월 22
4786
0
5월 22
2932
0
7월 24
2163
1
11월 20
4640