Skip to content
Snippets Groups Projects
Commit 5ed14ce9 authored by Ravi Patel's avatar Ravi Patel Committed by Yannick Tivisse
Browse files

[IMP] account: The new draft invoice has the sale order as the source document.

Context:
Source document on invoice created through a credit note with the modify option

Current issue:
create an invoice from a sale order,
validate it,
Create a refund with the modify option
The first invoice is reconciled with the refund
The new draft invoice doesn't have a source document and can't be reached from the SO

Expect result:
The new draft invoice should have the sale order as the source document
parent af1a8758
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,8 @@ class AccountInvoiceRefund(models.TransientModel):
'invoice_line_ids': invoice_lines,
'tax_line_ids': tax_lines,
'date': date,
'name': description
'name': description,
'origin': inv.origin
})
for field in ('partner_id', 'account_id', 'currency_id',
'payment_term_id', 'journal_id'):
......
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