How to Configure Country, Region and City in iDempiere

Introduction

The Country, Region and City window in iDempiere is the master data foundation for all geographic configurations. It defines the countries, states or provinces, and cities that are used across business partner records, warehouse locations, and delivery addresses.

In retail, accurate geographic data is critical for store setup, customer registration, and delivery management. Every branch store, customer address, and vendor location depends on correctly configured country and region records. This window also controls address print formats and postal code structures specific to each country.

Prerequisites

Ensure the following configurations are completed before configuring Country, Region and City:

  • System tenant and Client are configured in iDempiere.
  • Currency records are available (INR, USD, EUR, etc.) for assignment to countries.
  • Organization records (* and specific branches) are set up.
  • Language records are configured if multilingual address support is required.
  • Tax region or zone definitions are planned so Region records align with tax rules.

Navigation

Menu → System Admin → General Rules → System Rules → Country, Region and City
TenthPlanet-iDempiere-Masters-Country,RegionAndCity-1

The window opens displaying all existing country records. Use the search bar at the top to locate a specific country by name or ISO code.

Step-by-Step Configuration

Step 1: Open the Country, Region and City Window

When you navigate to the window, iDempiere displays the list of all pre-loaded country records. The tab panel at the bottom shows sub-tabs: Region, City, City (Without Regions), Translation, and Country Group.

Each country record contains the full address structure configuration for that country. Review existing records before creating new ones to avoid duplicates.

TenthPlanet-iDempiere-Masters-Country,RegionAndCity-2

Step 2: Create or Review a Country Record

For most retail deployments, country records are pre-loaded. However, you may need to review or update address formats for your operating country.

To create a new country record, click the New Record (+) button in the toolbar. A blank form opens. To edit an existing record such as India, search for it and open the record directly.

Field Reference — Country

FieldSample ValueDescription
TenantSystemThe client/tenant owning this record. System-level records are shared globally.
Organization*Set to * to share across all retail branches and stores.
ISO Country CodeINTwo-letter ISO 3166-1 alpha-2 code. Must be unique.
ISO Alpha-3 CodeINDThree-letter ISO 3166-1 alpha-3 code for international systems.
NameIndiaFull name of the country as displayed in address fields.
Descriptionthe Republic of IndiaOptional description for internal reference.
M49 Code356UN M49 numeric country code used for statistical classification.
Country has RegionCheckedEnable if the country uses states, provinces, or regions in addresses.
Allow Cities out of ListCheckedAllows free-text city entry during address capture in retail transactions.
Address Print Format@C@, @P@Controls address line output on printed documents. Use iDempiere format tokens.
Capture Sequence@A1@ @A2@ @A3@ @A4@ @C@, @P@ @CO@Order of address fields presented during data entry.
Local Address Format(blank)Alternative format for local-language address printing.
Postal Code Format(blank)Validation pattern for postal codes. Leave blank to accept any format.
Additional Postal CodeUncheckedEnable if the country uses a secondary postal code (e.g., ZIP+4).
Phone Format(blank)Validation pattern for phone number entry.
Bank Routing No Format(blank)Format mask for bank routing numbers.
Bank Account No Format(blank)Format mask for bank account numbers.
Language(blank)Default language for address formatting in this country.
CurrencyINRDefault currency auto-suggested for business partners in this country.
Media Size(blank)Paper size used for printing documents for this country.
Reverse Address LinesUncheckedReverses the order of printed address lines.
Reverse Local Address LinesUncheckedReverses local address line order for bilingual printing.
ActiveCheckedMust be checked for the country to appear in transaction address fields.
TenthPlanet-iDempiere-Masters-Country,RegionAndCity-3

Step 3: Configure Address Format for Retail

Address Print Format and Capture Sequence are the two most impactful fields for retail operations. They control how customer and vendor addresses appear on invoices, delivery notes, and purchase orders.

Common Address Format Tokens

TokenMeaningExample Output
@A1@Address Line 142, MG Road
@A2@Address Line 2Koramangala
@A3@Address Line 3Sector 5
@A4@Address Line 4Near Metro Station
@C@CityBengaluru
@P@Postal Code560034
@CO@CountryIndia
@R@Region / StateKarnataka

For Indian retail, the recommended Address Print Format is:

@A1@, @A2@, @A3@, @C@, @R@ - @P@, @CO@

Step 4: Configure Regions (States / Provinces)

The Region tab is available when Country has Region is enabled. Regions represent states, provinces, or administrative zones used in retail addresses and tax configurations.

Click the Region tab at the bottom of the Country window. Click the New Record (+) button within the tab to add a region.

TenthPlanet-iDempiere-Masters-Country,RegionAndCity-4

Field Reference — Region

FieldSample ValueDescription
NameKarnatakaFull name of the state or province.
DescriptionSouth Indian StateOptional description for internal reference.
Region CodeKAShort code used in address formatting and reports.
ActiveCheckedMust be active for the region to appear in address fields.

Sample Region Records for India

NameRegion CodeDescription
KarnatakaKABengaluru and surrounding districts
Tamil NaduTNChennai and southern districts
MaharashtraMHMumbai and Pune region
Delhi NCRDLNational Capital Region
TelanganaTSHyderabad and surrounding areas
GujaratGJAhmedabad, Surat, and western districts

Step 5: Configure Cities

Cities can be configured in two ways depending on whether the country uses regions:

  • City tab — for countries with regions enabled. Each city is linked to a specific region/state.
  • City (Without Regions) tab — for countries where regions are not applicable.

For retail chains operating across multiple cities, pre-loading city records ensures consistent address data across all POS terminals and back-office configurations.

TenthPlanet-iDempiere-Masters-Country,RegionAndCity-5

Field Reference — City

FieldSample ValueDescription
TenantSystemInherited from the parent country record.
Organization*Set to * to share across all retail branches.
CountryIndiaParent country. Auto-filled from the country record.
RegionKarnatakaState or province. Required if Country has Region is enabled.
NameBengaluruCity name as it should appear in address fields.
ActiveCheckedMust be active for the city to be selectable in transactions.
ZIP560001Default postal code for the city.
Area Code080Phone area code for the city.
LocodeIN BLRUN/LOCODE for the city, used in logistics and shipping integrations.
Coordinates12.9716,77.5946Latitude and longitude for map integrations.

Sample City Records

NameRegionZIPArea CodeActive
BengaluruKarnataka560001080Yes
ChennaiTamil Nadu600001044Yes
MumbaiMaharashtra400001022Yes
DelhiDelhi NCR110001011Yes
HyderabadTelangana500001040Yes
AhmedabadGujarat380001079Yes
CoimbatoreTamil Nadu6410010422Yes
PuneMaharashtra411001020Yes

Step 6: Configure Placeholder Labels

The Placeholders section at the bottom of the Country form defines the field labels shown to users during address data entry. These labels customise the address capture UI for each country’s address structure.

TenthPlanet-iDempiere-Masters-Country,RegionAndCity-6

Field Reference — Placeholders

FieldSample ValuePurpose
Placeholder for Address 1House/Flat No., Building NamePrompts user for property identifier
Placeholder for Address 2Street Name, AreaPrompts user for street-level address
Placeholder for Address 3Locality/NeighbourhoodPrompts user for locality detail
Placeholder for Address 4LandmarkPrompts user for nearby landmark
Placeholder for Address 5(blank)Optional fifth address line
Placeholder for postalPIN CodeLabel for postal code field
Placeholder for additional zip(blank)Label for secondary ZIP if enabled
Placeholder for cityCity / TownLabel for city selection field
Placeholder for Address 2Colony / SectorAlternate label for Address 2
Placeholder for Address 4Landmark / NearFriendly label for Address 4
Placeholder for commentsDelivery InstructionsOptional delivery notes field label

Step 7: Save the Record

After completing all field entries and configuring Regions and Cities, save the record by clicking the Save button (disk icon) in the toolbar, or pressing F10.

The record becomes immediately available across all iDempiere address fields system-wide. New business partner records, warehouse locations, and store addresses will reflect the configured country, region, and city data.

Step 8: Activate or Deactivate Records

The Active checkbox controls the visibility of country, region, and city records across all iDempiere address fields.

  • Active = Checked — the record appears in all address selection dropdowns and can be used in new transactions.
  • Active = Unchecked — the record is hidden from dropdowns. Existing transactions with this record are preserved and unaffected.
  • Deactivate rather than delete — deleting a country or region record that is referenced in existing business partner or transaction records will cause system errors.

Configuration Summary

Configuration ItemPurpose
Country RecordDefines country-level address structure, currency, and format rules
ISO Country CodeUnique two-letter code used across iDempiere integrations
Address Print FormatControls address layout on printed invoices and delivery notes
Capture SequenceDefines field order during address data entry at POS and back office
Country has RegionEnables state/province-level address hierarchy
Allow Cities out of ListPermits free-text city entry for non-standard locations
Region RecordDefines states, provinces, or administrative zones for address and tax
City RecordDefines city-level data including ZIP, area code, and coordinates
Placeholder LabelsCustomises address field labels to match local address conventions
Currency LinkAuto-suggests default currency for business partners in this country

Business Flow Overview

Country Record Created

Regions (States) Configured

Cities Assigned to Regions

Business Partner Address Entry

Store / Warehouse Location Setup

Sales Orders & Purchase Orders

Invoice & Delivery Note Printing

Tax Region & Compliance Reporting

Common Issues and Resolutions

IssueCauseResolution
Country not appearing in address dropdownCountry record is InactiveOpen the Country record, check Active, and save.
Region tab is empty or unavailableCountry has Region checkbox is not enabledEdit the Country record, check Country has Region, save, then add regions.
City not visible during address entryCity record is Inactive or linked to wrong regionVerify the City record is Active and assigned to the correct Region.
Postal code not validating correctlyPostal Code Format field has incorrect maskClear the format mask or update it to match the country’s postal code pattern.
Address prints in wrong order on invoiceAddress Print Format tokens are incorrectly sequencedEdit Address Print Format in the Country record to reorder the @tokens@.
Currency not auto-populating for new business partnerCurrency field is blank in the Country recordAssign the correct currency (e.g., INR) to the Country record.
Free-text city entry not allowed at POSAllow Cities out of List is uncheckedEnable Allow Cities out of List in the Country record and save.
City records show under wrong countryCity tab accessed from wrong country recordNavigate to the correct country before opening the City tab.
Duplicate country records appearingISO Country Code entered incorrectly or duplicatedSearch for existing records before creating new ones. Delete or merge duplicates.
Region not appearing in tax configurationRegion record name does not match tax zone configurationAlign Region Name with the tax configuration naming convention used in the Tax Rate window.

Next Steps

After completing Country, Region and City configuration in iDempiere, proceed with:

  • Business Partner Configuration — Assign country, region, and city to customer and vendor records.
  • Warehouse Location Setup — Configure store and warehouse addresses using the geographic hierarchy.
  • Tax Rate and Tax Zone Configuration — Link regions to tax zones for GST, VAT, and other tax rules.
  • Price List and Currency Setup — Assign country-level currencies to price lists for multi-currency retail.
  • Shipping and Delivery Configuration — Use country and region data for delivery route planning and carrier integration.