details: https://code.tryton.org/tryton/commit/0fe3845f041e
branch: default
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
diffstat:
modules/document_incoming_ocr/document.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 0c5f6bfcd70d -r 0fe3845f041e 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
@@ -352,6 +352,7 @@
('code_compact', '=', tax_identifier),
],
('type', 'in', Party.tax_identifier_types()),
+ ('party.active', '=', True),
])
if len(identifiers) == 1:
identifier, = identifiers