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

Hi,

I have create one custom field in purchase order, and I have to send that value into the invoice. how can I do this.

Thanks in advance!

아바타
취소
베스트 답변

Hi,

You can  override the _prepare_invoice_line_from_po_line method in account.invoice model and pass your custom field values from to account.invoice.line.

If you need to pass the value from the purchase.order to the account.invoice, either you can pass it in the context of the Invoice smart button in the purchase order form or you can fetch the value from account.invoice model using the purchase_id field in the account.invoice model .


Thanks

아바타
취소
작성자

I need to pass in account.invoice line origin, partner_id not in account.invoice.line

Then you can try the method specified in the second part of the answer

작성자

got it thanks!

관련 게시물 답글 화면 활동
2
5월 20
5159
2
7월 19
2971
2
11월 18
4490
0
5월 16
3559
2
4월 16
5640