details:   https://code.tryton.org/tryton/commit/a13c15404c14
branch:    7.6
user:      Cédric Krier <[email protected]>
date:      Wed Apr 08 12:12:54 2026 +0200
description:
        Search only for identifier of active party for supplier invoice party

        Closes #14752
        (grafted from 0fe3845f041e376094de422e67c422e732af02ec)
diffstat:

 modules/document_incoming_ocr/document.py |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r d1b788348dbc -r a13c15404c14 modules/document_incoming_ocr/document.py
--- a/modules/document_incoming_ocr/document.py Tue Apr 07 18:54:39 2026 +0200
+++ b/modules/document_incoming_ocr/document.py Wed Apr 08 12:12:54 2026 +0200
@@ -341,6 +341,7 @@
                 identifiers = Identifier.search([
                         ('code', '=', tax_identifier),
                         ('type', 'in', Party.tax_identifier_types()),
+                        ('party.active', '=', True),
                         ])
                 if len(identifiers) == 1:
                     identifier, = identifiers

Reply via email to