Enable Dark Mode!
how-to-set-up-us-states-zip-codes-and-address-formats-in-odoo-20.jpg
By: Haneena R M

How to Set Up US States, ZIP Codes, and Address Formats in Odoo 20

Functional Odoo 20 Odoo Enterprises Odoo Community

The country configuration in Odoo 20 USA controls all aspects of the address entry and formatting, from the list of states to the format of addresses on invoices. Proper configuration of the country will help businesses ensure proper addressing of customers and vendors and make sure that their taxes are calculated correctly. This blog post is written based on the Odoo 20 Enterprise edition.

In this blog, we will learn about the steps involved in reviewing the US country settings, adding states and cities, and entering a US address in a customer record in Odoo 20. This blog is one of a series on Odoo 20 US localization. It builds on the Odoo 20 US Localization: Accounting Setup guide.

Installing the Contacts App

The Countries, States, and Cities lists are managed through the Contacts app. To get started, open the Apps module in Odoo 20, search for Contacts, and click the Activate button on the Contacts card, as shown below.

How to Set Up US States, ZIP Codes, and Address Formats in Odoo 20-cybrosys

Open the US Country Settings

Once the installation is complete, the Contacts app will appear on your home screen. Open the Contacts app and click on the Configuration menu. Under Localization, you can see the Countries, Fed. States, and Country Group. Select the Countries, as shown below.

How to Set Up US States, ZIP Codes, and Address Formats in Odoo 20-cybrosys

Select the United States from the list. The USD currency, the US country code, the phone prefix 1, and the VAT label for the US, which is TIN, can be seen in the form of the country. In the settings on the right side, there are three Address entry settings. ZIP is marked as Required, State Required is checked, and Enforce Cities is checked. The Layout in Reports can be seen below them under the Advanced Address Formatting. The significant fields are shown below:

How to Set Up US States, ZIP Codes, and Address Formats in Odoo 20-cybrosys

With these settings, a US address must have a State and a ZIP code, and the city is chosen from a list of cities. The Cities button at the top will open the list. The Layout in Reports section defines how the address appears when printed on documents: the street goes on the first line, street 2 on the second line, followed by the city, state code, and ZIP code together on a single line, with the country name on the last line.

Review and Add US States

Scroll down on the country form and open the States tab. The list contains 62 records, each with a State Name and a State Code. Besides the 50 states, it includes the District of Columbia (DC), US territories such as Guam (GU), and the Federated States of Micronesia (FM). Here you can see a few of these records highlighted:

How to Set Up US States, ZIP Codes, and Address Formats in Odoo 20-cybrosys

The armed forces regions, Armed Forces Americas, Armed Forces Europe, and Armed Forces Pacific regions are also available as options for military addresses. To add a new state or region, go to Contacts > Configuration > Localization > Fed. States. Click the New button, and a new row will appear at the end of the list. Fill in the State Name, State Code, and Country fields, then click Save.

How to Set Up US States, ZIP Codes, and Address Formats in Odoo 20-cybrosys

Create a New Customer Address

Open Accounting > Customers > Customers and click the New button. You can also use Contacts > Contacts, which has the same address block. Then a new form will open, and you can simply enter the name and the address. The Address block has the Street, Street 2, City, State, ZIP, and Country fields, which are given below:

How to Set Up US States, ZIP Codes, and Address Formats in Odoo 20-cybrosys

Set the Country to United States

Start with the Country field and select United States. Odoo then arranges the address fields in the US order, with City, State, and ZIP on one line above the country:

How to Set Up US States, ZIP Codes, and Address Formats in Odoo 20-cybrosys

Selecting the country first also makes the States list show only US states.

Selecting the State

Click the State field. The list displays US states, each identified with the US country code, along with the armed forces regions:

How to Set Up US States, ZIP Codes, and Address Formats in Odoo 20-cybrosys

Start typing the name to narrow the list. Here we typed Ohio, and the matching state is shown. Click on it to select it:

How to Set Up US States, ZIP Codes, and Address Formats in Odoo 20-cybrosys

Finding the City

Click on the City field and start typing. Because Enforce Cities is ticked for the United States, the city is chosen from a list, and the state is shown beside each city name. For example, Columbus appears for Georgia, Indiana, Nebraska, Mississippi, Wisconsin, Minnesota, Texas, and Ohio, so select the one that matches the state:

How to Set Up US States, ZIP Codes, and Address Formats in Odoo 20-cybrosys

If your city is not in the list, the same dropdown offers Create and Create and edit options to add it.

Adding a Missing City

The US list has more than 31,000 cities, but you can add your own. Open Contacts > Configuration > Localization > Cities and click the New button. A new row appears at the top of the list, where you enter the Name, the Zip, the Country and the State. Here we are adding Wildwood Heights in Ohio with the ZIP code 44654:

How to Set Up US States, ZIP Codes, and Address Formats in Odoo 20-cybrosys

Click Save, and the city is added to the list, as shown below.

How to Set Up US States, ZIP Codes, and Address Formats in Odoo 20-cybrosys

Fill in the ZIP Code Automatically

Back on the customer form, select the country and state, then type the city name in the City field. The new city will appear with its ZIP code shown in brackets and the state listed below it:

How to Set Up US States, ZIP Codes, and Address Formats in Odoo 20-cybrosys

Click on the city, and Odoo fills the ZIP code for you, as you can see here:

How to Set Up US States, ZIP Codes, and Address Formats in Odoo 20-cybrosys

This works when a ZIP code is stored on the city record. For cities without a stored ZIP code, enter it manually.

Complete and Save the Address

Enter the street address, and click Save. Here you can see a completed US address:

How to Set Up US States, ZIP Codes, and Address Formats in Odoo 20-cybrosys

The ZIP code is marked as Required on the United States country record, so always enter it for US addresses.

The Odoo 20 US national settings improve the efficiency, accuracy, and transparency of address entry and printing. Every US address has the same format on documents, and users can quickly select the state and city from lists. Features are fully flexible among customers, vendors, and reports and can be tailored to meet particular organizational needs. Odoo 20 keeps address records consistent, saves time, and ensures smooth business execution.

To read more about How to Install and Configure US Localization in Odoo 20, refer to our blog, How to Install and Configure US Localization in Odoo 20.


Frequently Asked Questions

Is the state required for a US address in Odoo 20?

Yes. The State Required option is ticked on the United States country record, so a state must be selected.

How many US states and regions are available in Odoo 20?

The United States has 62 records in Odoo 20, including the 50 states, the District of Columbia, US territories, and the armed forces regions.

How is a US address printed in Odoo 20?

The street and street 2 print first, followed by the city, state code, and ZIP code on one line, and the country name on the last line.

Where do I manage countries, states, and cities in Odoo 20?

Install the Contacts app, then open Contacts > Configuration > Localization, where Countries, Fed. States and Cities are listed.

Why do I have to pick the city from a list?

The Enforce Cities option is ticked for the United States, so cities are selected from a list. You can add a missing city from the same dropdown.

If you need any assistance in odoo, we are online, please chat with us.



0
Comments



Leave a comment



WhatsApp