Skip to Content
Menú
This question has been flagged
1 Respondre
1589 Vistes

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
Descartar
Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
3
de maig 24
2342
2
d’abr. 24
2114
1
de nov. 23
1779
3
d’abr. 23
4783
3
de març 24
2407