Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4624 Lượt xem

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 ...

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 19
6063
2
thg 12 23
14829
0
thg 10 23
33
3
thg 10 23
788
1
thg 10 23
569