Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
1644 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
3
Mei 24
2366
2
Apr 24
2158
1
Nov 23
1826
3
Apr 23
4885
3
Mar 24
2421