跳至內容
選單
此問題已被標幟
2 回覆
4637 瀏覽次數

I have created one custom field in the purchase order line, and I have to send that value into the invoice while clicking the Create Bill button in the Purchase order form. how can I do this?


Please help me to fix this ...

頭像
捨棄

Reference for customization in odoo: https://learnopenerp.tumblr.com/

最佳答案

Hi,

You can pass the required values from the purchase order line to invoice line by overriding the function _prepare_invoice_line_from_po_line and pass the required values with this function.This function is in the following path addons/purchase/models/account_invoice.py.
Regards

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
11月 19
6067
2
12月 23
14876
0
10月 23
33
3
10月 23
788
1
10月 23
569