Search only for identifier of active party for supplier invoice party

Closes #14752
This commit is contained in:
Cédric Krier
2026-04-08 12:12:54 +02:00
parent 033e4326bf
commit 5c2579a62a
@@ -352,6 +352,7 @@ class IncomingSupplierInvoice(metaclass=PoolMeta):
('code_compact', '=', tax_identifier),
],
('type', 'in', Party.tax_identifier_types()),
('party.active', '=', True),
])
if len(identifiers) == 1:
identifier, = identifiers