trytond-patches/party_identifier_migration.diff

18 lines
692 B
Diff
Raw Normal View History

2019-10-23 15:07:39 +02:00
diff -r a2ce49dfb9fd party.py
2023-01-04 16:09:24 +01:00
--- 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
2019-10-23 15:07:39 +02:00
@@ -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(