[account_payment] : structured reference type is not reflected when importing from invoice

bzr revid: dhs@tinyerp.com-20130204073805-79lo0wbn3yf9o98u
This commit is contained in:
Niels Huylebroeck 2013-02-04 13:08:05 +05:30 committed by Dhruti Shastri
parent ffa1be00e1
commit dc15cd7a91
1 changed files with 1 additions and 0 deletions

View File

@ -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)