Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1623 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
kvě 24
2359
2
dub 24
2149
1
lis 23
1823
3
dub 23
4868
3
bře 24
2416