Created on 2019-05-10.19:24:14 by ced, last changed 36 months ago by roundup-bot.
New changeset e05b79b89515 by Cédric Krier in branch 'default': Rename language pattern into language_code https://hg.tryton.org/tryton-env/rev/e05b79b89515
New changeset 2144c71d868d by Cédric Krier in branch 'default': Rename language pattern into language_code https://hg.tryton.org/modules/party/rev/2144c71d868d
New changeset bfab5eff21bd by Cédric Krier in branch 'default': Load and update pycountry data from script https://hg.tryton.org/tryton-env/rev/bfab5eff21bd
New changeset 6794fd13cb64 by Cédric Krier in branch 'default': Load and update pycountry data from script https://hg.tryton.org/modules/party/rev/6794fd13cb64
New changeset e83a477968ca by Cédric Krier in branch 'default': Load and update pycountry data from script https://hg.tryton.org/modules/currency/rev/e83a477968ca
New changeset 416223b2a093 by Cédric Krier in branch 'default': Load and update pycountry data from script https://hg.tryton.org/modules/country/rev/416223b2a093
> 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. Otherwise I will try to remember also.
> 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.
I've tested the patch and everything works as expected. So for me it's ready to push. As a side note: We ensure that the new dependencies are installed on the 5.4 docker images.
Here is the patch: http://www.b2ck.com/~ced/issue8346.patch
I tried to download the review but it's too large for download. Could you share it as patch file?
I would like to push this change before the end of the month so the translations will be cleaned from the country and currency strings.
Mistake in msg50529. Replace country is in party.address.format, not in party.address. Sorry.
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 Depends the country module is valid option.
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.
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.
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.
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.
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.
|2019-07-30 23:30:42||roundup-bot||set||messages: + msg50978|
|2019-07-30 23:30:38||roundup-bot||set||messages: + msg50977|
|2019-07-30 23:03:14||roundup-bot||set||messages: + msg50975|
|2019-07-30 23:03:10||roundup-bot||set||messages: + msg50974|
|2019-07-30 23:03:06||roundup-bot||set||messages: + msg50973|
|2019-07-30 23:03:01||roundup-bot||set||status: testing -> resolved|
nosy: + roundup-bot
messages: + msg50972
|2019-07-26 09:46:17||pokoli||set||messages: + msg50906|
|2019-07-26 09:32:43||ced||set||messages: + msg50898|
|2019-07-26 09:24:24||pokoli||set||messages: + msg50897|
|2019-07-24 18:30:37||ced||set||messages: + msg50852|
Showing 10 items. Show all history (warning: this could be VERY long)