← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 450360] Re: Server don't preserve translation on update

 

** Also affects: openobject-server/5.0
   Importance: Undecided
       Status: New

** Also affects: openobject-server/trunk
   Importance: Wishlist
     Assignee: Anup (OpenERP) (ach-openerp)
       Status: New

-- 
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: New
Status in OpenObject Server 5.0 series: New
Status in OpenObject Server trunk series: New

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