Skip to content

Commit

Permalink
[FIX] public_budget_tax_settlement: Devoluc Ingresos Brutos
Browse files Browse the repository at this point in the history
closes #507

Ticket: 65303
Signed-off-by: Katherine Zaoral <kz@adhoc.com.ar>
  • Loading branch information
pablohmontenegro authored and zaoral committed Sep 22, 2023
1 parent 9c95cc9 commit b95a119
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public_budget_tax_settlement/models/account_payment.py
Expand Up @@ -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:
Expand All @@ -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(_(
Expand Down

0 comments on commit b95a119

Please sign in to comment.