Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
4599 Prikazi

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

Avatar
Opusti

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

Best Answer

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
nov. 19
6050
2
dec. 23
14795
0
okt. 23
33
3
okt. 23
788
1
okt. 23
569