Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4547 Переглядів

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!

Related Posts Відповіді Переглядів Дія
2
трав. 20
4929
2
лип. 19
2805
2
лист. 18
4315
0
трав. 16
3426
2
квіт. 16
5469