تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
7034 أدوات العرض

Hello, 

We are a US country who only does business in the US or Canada.  Is is frustrating to have to set a country on customer, vendor and contact forms. I personally believe it looks amateurish when other states and countries populate.  Is there a way to either: 

1) Delete countries I do not use?

2) Set the US as the default country on everything so only US States are suggested? 

الصورة الرمزية
إهمال
أفضل إجابة

Hi,

What you can do is that you can set default value for the specified field. Suppose if your customers are more from US, in the country field just set it as the default value, so that you don't need to choose it all the time.


See this video and see how to set default value for a field from user interface in developer mode: How To Set Default Value For A Field in Odoo 


Rather than looking to delete countries you can try the above method or just keep those countries as inactive by setting active as False if possible.


Thanks

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

Thank you both for your response.   I was able to set the default country on the contact forms. 

Could you tell me specifically where I can see a list of countries so I could set them as inactive?

الصورة الرمزية
إهمال
أفضل إجابة
country_id = field.char(default='name country')in the table "res_country_state"
الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مارس 15
9223
2
مايو 19
5346
9
يونيو 23
13699
2
يناير 22
4334
2
ديسمبر 21
8469