Accounting Localization - Odoo 20 Community Book

How Odoo Picks and Loads a Package

The country of the company. Each country module writes its country in its manifest file, in the key countries. A module that is made for a country is installed by itself when you install Invoicing and at least one company of the database is in that country. This is the rule that the function that installs modules follows.

The chart template. The company has a field Chart Template, which holds the code of the chart that is loaded. Here it is generic_coa, the generic chart. Odoo suggests a chart by the country of the company: it puts the charts of that country first in the list.

Loading. The loading function installs the module of the package if it is not installed, and then creates the accounts, taxes, tax groups, fiscal positions, journals and the default values for the company. Only a user who is the administrator of the whole database can do this. Another user gets the message Only administrators can install chart templates.

Choosing in the Settings. In Invoicing > Configuration > Settings, the block Fiscal Localization has the field Package. A company that has no accounting entries yet can pick a package in the list, and Odoo loads it when you click Save. A company that already has accounting entries cannot change the package. The field becomes read only. The company has entries, so the field is read only and shows the name of the generic chart.

Reload. The button Reload is there only when the company has accounting entries. It loads the data of the same package again. The help text of the button says: Reload accounting data (taxes, accounts, ...) if you notice inconsistencies. This action is irreversible.

A few packages cannot be chosen directly. Odoo refuses the OHADA charts syscohada and syscebnl and tells you to choose the chart of your country instead (section 4.5).

In short: choose the package when you set up the company, before you post any entry. If you set the country of the company before you install Invoicing, Odoo installs the right package by itself. Check the package in the Settings. If a company has already posted entries with the generic chart, you cannot change the package from the Settings screen, and you should ask the accountant or your Odoo partner before you try another way.

The sample company. The company is Cybrosys Technologies, in the United States, and it uses the generic chart with 51 accounts and the 15% and 0% taxes that you saw in the Invoicing chapter. No country module is installed yet, apart from the VAT validation module. The United States has its own package, United States - Accounting (l10n_us_account), with 128 accounts, 46 taxes and 2 fiscal positions in its files, and you can install it from the Settings.

WhatsApp