[Erp5-dev] ISO country codes in ERP5

Jean-Paul Smets jp at nexedi.com
Thu Apr 10 17:07:24 CEST 2008


Łukasz Nowak a écrit :
> Hello,
>
> In business world there is need to use ISO Country Codes for
> parties.
>
> From developer point of view country to ISO Country Code is just simple
> mapping, eg: 'Poland' => 'PL', 'France' => 'FR'. And more - such map is
> published on ISO site in various formats:
> http://www.iso.org/iso/country_codes/iso_3166_code_lists.htm
>
> Where in ERP5 such mapping shall reside? In portal_categories/region as
> codification property for country (that is what we are doing right now)?
>   
This is one way of doing, although it is not always desirable to have
the full ISO list for everyone (this is why there is no default category
in ERP5).
I would suggest to put a link to this list in the erp5.org (it is maybe
already there).

This area:
    http://www.erp5.org/ResourceLibrary
is meant for that.
> Those data might change from time to time and what about historical
> changes? Anything else...?
>   
In some cases, we have set a workflow on categories to define which are
in use and which are not.

By using the checked_permission or state parameter, we only display
those categories which are still in use, while preserving legacy data.

This way, it is possible to keep old category definitions and introduce
new ones during the life of the system, without doing heavy data migration.

The reason why this workflow is not set in default is because the more
workflows in the system, the less performance. It is also possible to
achieve similar result by changing effective data parameters in categories.

Regards,

JPS.

> Regards,
> Luke
>
>   


-- 
Jean-Paul Smets-Solanes, Nexedi CEO - Tel. +33(0)6 62 05 76 14
ERP5 Enterprise: Free / Open Source ERP for Critical Applications
http://www.erp5.com
ERP5 Express: Hosted Open Source ERP for small companies
http://www.myerp5.com
Nexedi: Consulting and Development of Free / Open Source Software 
http://www.nexedi.com




More information about the Erp5-dev mailing list