[MERGE] account_payment: imported payments from invoices on payment order do not reflect reference type on invoice
bzr revid: nh@agaplan.eu-20130125163830-8ouz4bkrx639k53x
This commit is contained in:
@@ -88,6 +88,7 @@ class payment_order_create(osv.osv_memory):
|
||||
'partner_id': line.partner_id and line.partner_id.id or False,
|
||||
'communication': line.ref or '/',
|
||||
'date': date_to_pay,
|
||||
'state': line.invoice and line.invoice.reference_type != 'none' and 'structured' or 'normal',
|
||||
'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)
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
|
||||
Reference in New Issue
Block a user