mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] pms: convert to str mobile from excel (#35)
This commit is contained in:
@@ -191,7 +191,7 @@ class PmsCheckinPartner(models.Model):
|
||||
if not re.search(
|
||||
r"^(\d{3}[\-\s]?\d{2}[\-\s]?\d{2}[\-\s]?\d{2}[\-\s]?|"
|
||||
r"\d{3}[\-\s]?\d{3}[\-\s]?\d{3})$",
|
||||
record.mobile,
|
||||
str(record.mobile),
|
||||
):
|
||||
raise ValidationError(_("'%s' is not a valid phone", record.mobile))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user