From b95a11991d56be3ac8f7c7a54221245c7af798f0 Mon Sep 17 00:00:00 2001 From: Pablo Montenegro Date: Wed, 6 Sep 2023 19:19:58 +0000 Subject: [PATCH] [FIX] public_budget_tax_settlement: Devoluc Ingresos Brutos closes ingadhoc/odoo-public-administration#507 Ticket: 65303 Signed-off-by: Katherine Zaoral --- public_budget_tax_settlement/models/account_payment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public_budget_tax_settlement/models/account_payment.py b/public_budget_tax_settlement/models/account_payment.py index e864abd7..7f57c122 100644 --- a/public_budget_tax_settlement/models/account_payment.py +++ b/public_budget_tax_settlement/models/account_payment.py @@ -82,7 +82,7 @@ def action_post(self): """ res = super().action_post() for rec in self.filtered('returned_payment_ids'): - return_aml = rec.move_line_ids.filtered( + return_aml = rec.line_ids.filtered( lambda x: x.account_id == rec.tax_withholding_id.refund_repartition_line_ids.filtered(lambda x : x.repartition_type == 'tax').account_id) if len(return_aml) != 1: @@ -104,7 +104,7 @@ def get_wihholding_aml(self): liquidado """ self.ensure_one() - withholding_aml = self.move_line_ids.filtered( + withholding_aml = self.line_ids.filtered( lambda x: x.account_id == self.tax_withholding_id.invoice_repartition_line_ids.filtered(lambda x : x.repartition_type == 'tax').account_id) if len(withholding_aml) != 1: raise ValidationError(_(