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

I add a custom field in sale order line and i wanna keep it in purchase order line when i confirm the SO

I tried to modify the function _run_buy but it doesn't work .

Please help !!

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

Thank you for your answer but i've already check these methods but i can't find where to add my new field. it will be really helpful if you give me examples.

Thank you in advance !

아바타
취소
작성자

I tried to modify in the run_but method but i got this :
AttributeError: 'Procurement' object has no attribute 'other_parter_id'

Can anyone help please !

베스트 답변

Hi,

From the _run_buy method, another method _prepare_purchase_order_line_from_procurement is called, from there you can see the function _prepare_purchase_order_line to update from there a function called values into purchase. Do check the method, it may help you.

Hope it helps

아바타
취소
관련 게시물 답글 화면 활동
2
8월 22
4248
1
4월 22
3329
1
3월 22
5066
1
2월 22
2501
0
2월 22
2312