Skip to Content
Menu
This question has been flagged
1 Atsakyti
1735 Rodiniai

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.
Portretas
Atmesti
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)]"/>

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
geg. 24
2527
2
bal. 24
2344
1
lapkr. 23
1972
3
bal. 23
5127
3
kov. 24
2506