Files
tryton/doc/setup.rst
T
David Harper e0b48554bf Improve documentation
issue9598
review312311002
2020-12-30 16:28:18 +00:00

40 lines
1.1 KiB
ReStructuredText

*****
Setup
*****
When the *Country Module* is activated it does not create any country,
subdivision or postal code records.
You do this using the provided scripts.
.. _Loading and updating countries and subdivisions:
Loading and updating countries and subdivisions
===============================================
The :command:`trytond_import_countries` script loads and updates Tryton with
the `ISO 3166`_ list of `Countries <model-country.country>` and
`Subdivisions <model-country.subdivision>`.
You run it with:
.. code-block:: sh
trytond_import_countries -c trytond.conf -d <database>
.. _ISO 3166: https://en.wikipedia.org/wiki/ISO_3166
.. _Loading and updating postal codes:
Loading and updating postal codes
=================================
You can use the :command:`trytond_import_zip` script to load and update the
`Postal Codes <model-country.zip>` in Tryton from the `GeoNames Database`_.
It is run with:
.. code-block:: bash
trytond_import_zip -c trytond.conf -d <database> <two_letter_country_code>
.. _GeoNames Database: https://www.geonames.org/