|
@@ -26,7 +26,9 @@ class AccountInvoice(models.Model):
|
|
|
elif (moveLine.reconcile_ref and moveLine.amount_residual > 0):
|
|
|
state = 'Amortizado'
|
|
|
|
|
|
- interest = self.env['account.interest.line'].browse(moveLine.interest_line_ids.id)
|
|
|
+ interestIDS = map(lambda x: x.id, moveLine.interest_line_ids)
|
|
|
+
|
|
|
+ interest = self.env['account.interest.line'].search([('id','in',interestIDS ),('state', '=', 'open')])
|
|
|
|
|
|
values.append({
|
|
|
'dateMaturity' : moveLine.date_maturity,
|