콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
6710 화면

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
3월 15
8886
2
5월 19
5052
9
6월 23
13271
2
1월 22
3957
2
12월 21
8004