Replace co_rut for co_nit as tax identifier

Closes #13679
This commit is contained in:
Maxime Richez
2024-11-13 15:50:38 +01:00
parent 25322bc0d1
commit b502f39d6e
2 changed files with 6 additions and 2 deletions
+1
View File
@@ -1,3 +1,4 @@
* Replace co_rut for co_nit as tax identifier
Version 7.4.0 - 2024-11-04
--------------------------
+5 -2
View File
@@ -557,7 +557,6 @@ IDENTIFIER_TYPES = [
('cn_ric', "Chinese Resident Identity Card Number"),
('cn_uscc', "Chinese Unified Social Credit Code"),
('co_nit', "Colombian Identity Code"),
('co_rut', "Colombian Business Tax Number"),
('cr_cpf', "Costa Rica Physical Person ID Number"),
('cr_cpj', "Costa Rica Tax Number"),
('cr_cr', "Costa Rica Foreigners ID Number"),
@@ -715,7 +714,7 @@ TAX_IDENTIFIER_TYPES = [
'ch_vat',
'cl_rut',
'cn_uscc',
'co_rut',
'co_nit',
'cr_cpj',
'cz_dic',
'de_vat',
@@ -837,6 +836,10 @@ class Identifier(sequence_ordered(), DeactivableMixin, ModelSQL, ModelView):
cursor.execute(*table.update([table.type], ['uy_rut'],
where=(table.type == 'uy_ruc')))
# Migration from 7.4: Rename co_rut into co_nit
cursor.execute(*table.update([table.type], ['co_nit'],
where=(table.type == 'co_rut')))
@classmethod
def get_types(cls):
pool = Pool()