mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX]pms_l10n_es: Nationality code alpha compute INE code
This commit is contained in:
@@ -22,7 +22,7 @@ class ResPartner(models.Model):
|
||||
if not record.nationality_id:
|
||||
record.ine_code = False
|
||||
elif record.nationality_id.code != CODE_SPAIN:
|
||||
record.ine_code = record.country_id.code_alpha3
|
||||
record.ine_code = record.nationality_id.code_alpha3
|
||||
else:
|
||||
if not record.state_id:
|
||||
record.ine_code = False
|
||||
|
||||
Reference in New Issue
Block a user