This website works better with JavaScript.
Home
Explore
Help
Sign In
raynald
/
opendon_kalachakra
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
mobile phone bug
master
root
3 years ago
parent
e697ffe375
commit
c367ff5b4b
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
models/partner.py
+ 1
- 1
models/partner.py
View File
@ -215,7 +215,7 @@ class partner(models.Model):
@api.constrains
(
'
phone
'
)
def
_onchange_phone
(
self
)
:
if
self
.
mobil
e
:
if
self
.
phon
e
:
regex
=
re
.
compile
(
r
'
(^(?:(?:
\
+|00)33[
\
s.-]{0,3}(?:
\
(0
\
)[
\
s.-]{0,3})?|0)[1-9](?:(?:[
\
s.-]?
\
d{2}){4}|
\
d{2}(?:[
\
s.-]?
\
d{3}){2})$)+
'
)
# 0123456789
Write
Preview
Loading…
Cancel
Save