[FIX] account_payment when importing payment lines (currency not set correctly)

lp bug: https://launchpad.net/bugs/428926 fixed

bzr revid: joel.grandguillaume@camptocamp.com-20091102082918-udyj4yyr408myiqq
This commit is contained in:
Joel Grand-Guillaume
2009-11-02 09:29:18 +01:00
parent e364cf15b3
commit c64e10c4fa
@@ -95,6 +95,7 @@ def create_payment(self, cr, uid, data, context):
'partner_id': line.partner_id and line.partner_id.id or False,
'communication': line.ref or '/',
'date': date_to_pay,
'currency': line.invoice and line.invoice.currency_id.id or False,
}, context=context)
return {}