Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
1411 Visninger

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
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
3
maj 24
2087
2
apr. 24
1831
1
nov. 23
1495
3
apr. 23
4498
3
mar. 24
2259