跳至內容
選單
此問題已被標幟
1 回覆
1694 瀏覽次數

Hi friends,

I want to know your best solution for my scenario as below:

Scenario:

  1. In the Contact module,
  2. I want to show not all countries but show just ''widely used company countries'' in the dropdown of the 'Country' field (4 or 5 countries that might change over time),
  3. The list might change over time,
  4. I don't want the hard-coded way.
頭像
捨棄
最佳答案

In country (res.country) add a boolean field like is_widly_use_country and add XML domain on country_id like 

<fieldname="country_id" domain="[('is_widly_use_country', '=', True)]"/>

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
5月 24
2436
2
4月 24
2255
1
11月 23
1910
3
4月 23
5021
3
3月 24
2470