mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
18 lines
692 B
Diff
18 lines
692 B
Diff
diff -r a2ce49dfb9fd party.py
|
|
--- a/tryton/modules/party/party.py Mon May 06 15:04:56 2019 +0200
|
|
+++ b/tryton/modules/party/party.py Sun Jun 23 15:53:05 2019 +0200
|
|
@@ -458,8 +345,11 @@
|
|
continue
|
|
for type in Party.tax_identifier_types():
|
|
module = get_cc_module(*type.split('_', 1))
|
|
- if module.is_valid(code):
|
|
- break
|
|
+ try:
|
|
+ if module and module.is_valid(code):
|
|
+ break
|
|
+ except:
|
|
+ pass
|
|
else:
|
|
type = None
|
|
identifiers.append(
|