c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #00388
[Bug 450360] Re: Server don't preserve translation on update
Hello,
Thank you for the patch and reporting. I couldn't use the patch, because
I think most of the users will forge to tick the checkbox to not
overwrite the custom translation. So, I added a checkbox in the wizard
that loads a translation. By default in trunk, it does not overwrite
translations.
Fix released in trunk r2891, it's better to not change the stable
version because the patch requires to update the schema/views. Our
policy is to only apply bugfixes in a stable branch.
** Changed in: openobject-server/5.0
Status: Confirmed => Won't Fix
** Changed in: openobject-server/trunk
Status: Confirmed => Fix Released
--
Server don't preserve translation on update
https://bugs.launchpad.net/bugs/450360
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP OpenObject.
Status in OpenObject Server: Fix Released
Status in OpenObject Server 5.0 series: Won't Fix
Status in OpenObject Server trunk series: Fix Released
Bug description:
Hi,
Version : Last stable branch
As for the security access rules on object, I think that custom translation from user should be preserved on update. This is not the case actually, test it with the following procedure:
1. Take a DB with more than english languages installed
2. Translate a text on the invoice for example (I try with field description)
3. Ask to update module account and apply changes
4. Go back to look at your field : translation were restored from po file of the module !!
I think this should not append ! You must preserve user setting in that case, or at least let it choose !
I suggest here an well tested solution, and provide a patch for that :)
a) I add a new boolean field (always_update) on res_lang, allowing the user to choose if he want this languages to be updated from po file when making an update or not.
b) I change the translate.py and the module.py in order to take care on the value of this field (always_update), and respect the user choice.
c) I make this field (always_update) tick by default, so if user do nothing, it preserve the same comportment as it was before that patch.
d) I even add a check to know if the field "always_update" exists in the res_lang object, so even if you forget to make an update=all when upgrading your server with this patch, you will not have trouble and crash your server :) !
So, I ask : Could you please release this into the stable branch ? It's definitely boring to see our customers translations erased on each update...
My2Cents,
Regards,
Joël