From 63eddf169f5e753775dbc35582f6dc106cb2e950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 29 Apr 2023 11:43:02 +0200 Subject: [PATCH] Search SIREN and SIRET with identifier type equals to fr_siren Closes #12237 --- modules/party_siret/address.py | 2 +- modules/party_siret/party.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/party_siret/address.py b/modules/party_siret/address.py index 9fbcc82442..ca0e29e08b 100644 --- a/modules/party_siret/address.py +++ b/modules/party_siret/address.py @@ -71,7 +71,7 @@ class Address(metaclass=PoolMeta): domain = [ ('identifiers', 'where', [ ('code', operator, value), - ('type', 'in', 'fr_siren'), + ('type', '=', 'fr_siren'), ]), ] # Add party without tax identifier diff --git a/modules/party_siret/party.py b/modules/party_siret/party.py index 856c9cde03..632568d99f 100644 --- a/modules/party_siret/party.py +++ b/modules/party_siret/party.py @@ -22,7 +22,7 @@ class Party(metaclass=PoolMeta): domain = [ ('identifiers', 'where', [ ('code', operator, value), - ('type', 'in', 'fr_siren'), + ('type', '=', 'fr_siren'), ]), ] # Add party without tax identifier