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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user