Managing those data inside the XML is quiet painful.
Instead I think we should use a script a little bit like the trytond_import_zip but using pycountry.
The script could manage the update using the ISO code as ID.
As it can be slow and not everybody needs every countries or currencies. I think the scripts could take as argument a list of ISO code to create/update.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items
...
Linked items
0
Link issues together to show that they're related.
Learn more.
I'm wondering if it won't be better to use a wizard on the server instead of a script so the users can update their own data without requiring the intervention of the system administrator.
It will be an intensive load and probably long process. I do not think it should be managed by a user request.
Also there is no point to run it again if the pycountry version did not change.
The party module depends on the country data for the format. So if we do not load the countries, it fails to create those records. I propose to replace the Many2One country on party.address.format by a char field with the country code. This way, it does not depend on the country records.
Here is review285501002
For the symbol of currency as it is not provided by pycountry, I use forex-python. I think it is a good option as it may be the base for an automatic rate update.
Cédric Krieradded 1 deleted label and removed 1 deleted label
IMHO relate country in party address is correct option because in reports you could browse data from the country (code, name...) and review285501002 you can't
> As a side note: We ensure that the new dependencies are installed on the 5.4 docker images.
There is no mechanism to force installing all extra dependencies with pip (like trytond_country[*]) so I hope we will remember when preparing the series.
> There is no mechanism to force installing all extra dependencies with pip (like trytond_country[*]) so I hope we will remember when preparing the series.
Maybe it's worth to create an issue now and describe what packages should be installed.