Skip to content

Commit

Permalink
[11.0][FIX] l10n_es_ticketbai - corregido filtered para no enviar rec…
Browse files Browse the repository at this point in the history
…tificativas de proveedor como factura tbai
  • Loading branch information
enriquemartin committed Apr 19, 2022
1 parent 32b62e4 commit 527e3e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions l10n_es_ticketbai/models/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ def validate_refund_invoices():
self.sudo().filtered(
lambda x:
x.tbai_enabled and 'out_refund' == x.type and
not x.tbai_refund_type or
x.tbai_refund_type == RefundType.differences.value and
(not x.tbai_refund_type or
x.tbai_refund_type == RefundType.differences.value) and
x.date and x.date >= x.journal_id.tbai_active_date)

validate_refund_invoices()
Expand Down

0 comments on commit 527e3e8

Please sign in to comment.