Server don't preserve translation on update
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) | Status tracked in Trunk | |||||
5.0 |
Won't Fix
|
Wishlist
|
Unassigned | |||
Trunk |
Fix Released
|
High
|
Anup(SerpentCS) |
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
Changed in openobject-server: | |
assignee: | nobody → Anup (Open ERP) (ach-openerp) |
Changed in openobject-server: | |
importance: | Undecided → Wishlist |
(If accepted, please report it on the trunk branch too !)