From 4bf5ce94d20d4ddec180cd7a9ef15511c2d9784f Mon Sep 17 00:00:00 2001 From: Denis Michiels Date: Mon, 23 Feb 2015 13:38:44 +0100 Subject: [PATCH] [FIX] account_invoice : origin field for refund invoice When creating a Refund invoice, the field "origin" is fill with the number of the invoice to refund fix #5233 opw 627828 --- addons/account/account_invoice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py index b3e5977d1d9..2654f55150c 100644 --- a/addons/account/account_invoice.py +++ b/addons/account/account_invoice.py @@ -1098,6 +1098,7 @@ class account_invoice(models.Model): values['date_invoice'] = date or fields.Date.context_today(invoice) values['state'] = 'draft' values['number'] = False + values['origin'] = invoice.number if period_id: values['period_id'] = period_id