Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
1486 Ansichten
Hello

I use Odoo 8.

I wish in the invoice to recover a field of the purchase order of origin.

For example I want to recover the INCOTERM code entered in the order form. I have created a custom field in the invoice template, but how can I recover the INCOTERM data entered in the associated order form.

Thanks for your help.
 

cordially



Avatar
Verwerfen

The forum language is english only, please do not use any other language.

Beste Antwort

Hi,

You can do that by this following code :

incoterm_order = self.env['sale.order'].search([('name','=',self.origin)])[0].incoterm.id

Hope that answers the question.

Avatar
Verwerfen