Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
1732 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
3
toukok. 24
2525
2
huhtik. 24
2342
1
marrask. 23
1968
3
huhtik. 23
5124
3
maalisk. 24
2505