コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4551 ビュー

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
4931
2
7月 19
2806
2
11月 18
4316
0
5月 16
3429
2
4月 16
5469