I’m trying to show a custom field in DocType Customer depending on the primary address country.
eval:doc.customer_primary_address.country == 'specific country'
but it seems that all fields of
doc.customer_primary_address are undefined. Is there a way to access this value?
I created a DocType for groups of countries, so for example to check if the
customer_primary_address.country belongs to “European Union” entry. I assume I must use the in_list?
Country Group has a
table entry of DocType
Country Group Entry which works fairly well to setup groups.
Any help appreciated