Search only for identifier of active party for supplier invoice party

Closes #14752
(grafted from 0fe3845f041e376094de422e67c422e732af02ec)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier
2026-04-08 12:12:54 +02:00
parent 83ca704620
commit da89d84b74
@@ -341,6 +341,7 @@ class IncomingSupplierInvoice(metaclass=PoolMeta):
identifiers = Identifier.search([
('code', '=', tax_identifier),
('type', 'in', Party.tax_identifier_types()),
('party.active', '=', True),
])
if len(identifiers) == 1:
identifier, = identifiers