İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
1650 Görünümler

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.
Avatar
Vazgeç
En İyi Yanıt

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)]"/>

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
3
May 24
2376
2
Nis 24
2173
1
Kas 23
1833
3
Nis 23
4905
3
Mar 24
2433