Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4482 Zobrazení

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!

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Autor

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

Autor

got it thanks!

Related Posts Odpovědi Zobrazení Aktivita
2
kvě 20
4842
2
čvc 19
2759
2
lis 18
4241
0
kvě 16
3376
2
dub 16
5433