mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX]pms_api_rest: document number check has been changed from document_type aeat_identification_type to code
This commit is contained in:
@@ -579,7 +579,7 @@ class PmsPartnerService(Component):
|
||||
document_type.validate_id_number(id_number)
|
||||
except ValidationError as e:
|
||||
error_mens = str(e)
|
||||
if document_type.aeat_identification_type in ["02", "04"]:
|
||||
if document_type.code == 'D':
|
||||
Partner = self.env["res.partner"]
|
||||
error = not Partner.simple_vat_check(
|
||||
country_code=country.code,
|
||||
|
||||
Reference in New Issue
Block a user