Skip to content
Snippets Groups Projects
Commit 87542160 authored by Matheus Leal Viana (malv)'s avatar Matheus Leal Viana (malv)
Browse files

[FIX] sale_stock: Correct incoterm when generating downpayment invoices


When creating an downpayment invoice for a SO with a incoterm different than the default one, this invoices ignores the incoterm you defined and uses the default value.

This issue is happening because in the _prepare_invoice_values is not passing the value of correct value of the incoterm and the default value is being used.

How to reproduce:
1. Active "incoterms" and choose a default incoterms in settings
2. Create a SO with a incoterm different than the default one
3. Create a downpayment invoice
4. In the new created invoice the incoterm is set as the default incoterm instead of the previously defined

closes odoo/odoo#120823

Opw: 3284556
Signed-off-by: default avatarAdrien Widart (awt) <awt@odoo.com>
parent 1b08af54
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment