Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
6465 Lượt xem

In one of my Odoo V13 databases, contact phones are automatically formatted.  Country code is added and the figures are separated into groups 3, 2, 2, 2. 

However, in other DBs (also V13) this doesn't happen.  

One of my customers doesn't want telephone numbers to be formatted.  

Can this feature be disabled?


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello - according to my experience there are two ways:

  1. Export the contact(s) - change the value of the phone number field as you like - import the contact(s) back in Odoo (if the record is imported Odoo will not change the format of the field - as Chris Parker stated).
  2. If I'm creating a new database immediately after creation - before doing anything else - I uninstall all apps / modules I don't want - in this case it would be "phone_validation". But be carefull - you can't do this later! without damaging the database / your installation ...

Regards ECF


Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Thanks for your help.
I don't want to remove spaces. I want Odoo to respect the format that the user has entered. 

Ảnh đại diện
Huỷ bỏ

I know this post is very old, and this might not be helpful, but for what it's worth it looks like Odoo doesn't reformat the number when it's imported.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 25
1428
1
thg 3 25
1570
MERGING CONTACTS Đã xử lý
1
thg 2 25
2998
Use of external id Đã xử lý
2
thg 2 25
2857
2
thg 2 25
2256