Skip to content

Commit

Permalink
Merge PR #3473 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Mar 12, 2024
2 parents 6040c50 + 27efc62 commit 212bb3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion l10n_es_aeat_sii_match/models/aeat_sii_match_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,9 @@ def _get_invoices_from_sii(self):
if sii_match_report.invoice_type == "in":
mapping_key = "in_invoice"
serv = (
self.env["account.move"].search([], limit=1)._connect_sii(mapping_key)
self.env["account.move"]
.search([("company_id", "in", [self.company_id.id, False])], limit=1)
._connect_sii(mapping_key)
)
header = sii_match_report._get_sii_header()
match_vals = {}
Expand Down

0 comments on commit 212bb3e

Please sign in to comment.