Skip to content

Commit

Permalink
[FIX]account_tax_settlement: optimizar el dominio de account.payment.…
Browse files Browse the repository at this point in the history
…group para tenes en cuenta las líneas a pagar

Ticket: 57510
  • Loading branch information
pablohmontenegro committed Dec 29, 2022
1 parent 4714be6 commit 3525da8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions account_tax_settlement/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
from . import account_journal_dashboard
from . import account_financial_html_report_line
from . import account_report
from . import account_payment_group
14 changes: 14 additions & 0 deletions account_tax_settlement/models/account_payment_group.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from odoo import models


class AccountPaymentGroup(models.Model):

_inherit = 'account.payment.group'

def _get_to_pay_move_lines_domain(self):
to_pay_move_line_ids = self._context.get('to_pay_move_line_ids', [])
if to_pay_move_line_ids:
return [
('id', 'in', to_pay_move_line_ids),
]
return super()._get_to_pay_move_lines_domain()

0 comments on commit 3525da8

Please sign in to comment.