From dc15cd7a910dda84eedf10a09f7464e02b6f6a94 Mon Sep 17 00:00:00 2001 From: Niels Huylebroeck <> Date: Mon, 4 Feb 2013 13:08:05 +0530 Subject: [PATCH] [account_payment] : structured reference type is not reflected when importing from invoice bzr revid: dhs@tinyerp.com-20130204073805-79lo0wbn3yf9o98u --- addons/account_payment/wizard/account_payment_order.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account_payment/wizard/account_payment_order.py b/addons/account_payment/wizard/account_payment_order.py index f4d695a05d1..28aa4a6c048 100644 --- a/addons/account_payment/wizard/account_payment_order.py +++ b/addons/account_payment/wizard/account_payment_order.py @@ -87,6 +87,7 @@ class payment_order_create(osv.osv_memory): 'order_id': payment.id, 'partner_id': line.partner_id and line.partner_id.id or False, 'communication': line.ref or '/', + 'state': line.invoice and line.invoice.reference_type != 'none' and 'structured' or 'normal', 'date': date_to_pay, 'currency': (line.invoice and line.invoice.currency_id.id) or line.journal_id.currency.id or line.journal_id.company_id.currency_id.id, }, context=context)