← Back to team overview

openerp-community-reviewer team mailing list archive

[Bug 1319285] [NEW] Module update does not overwrite existing therms when i18n-overwrite is set

 

Public bug reported:

If the server is started with the "--i18n-overwrite"  option, it is entirely ignored when updating module in these two cases:
- update from command line
- update from module view

In "tools/config.py", following is stated:
"the i18n-overwrite option cannot be used without the i18n-import option or without the update option"

I made a fix in _load_data in "modules/loading.py" where a context is created with the overwite option (was None before):
# Update translations for all installed languages
modobj.update_translations(cr, SUPERUSER_ID, [module_id], None, {'overwrite': openerp.tools.config["overwrite_existing_translations"]})

** Affects: ocb-server
     Importance: Undecided
         Status: New

** Affects: openobject-server
     Importance: Undecided
         Status: New

** Description changed:

  If the server is started with the "--i18n-overwrite"  option, it is entirely ignored when updating module in these two cases:
  - update from command line
  - update from module view
  
  In "tools/config.py", following is stated:
  "the i18n-overwrite option cannot be used without the i18n-import option or without the update option"
  
- I made a fix in _load_data in "modules/loading.py" where a context is created with the overwite option (was None before:
+ I made a fix in _load_data in "modules/loading.py" where a context is created with the overwite option (was None before):
  # Update translations for all installed languages
  modobj.update_translations(cr, SUPERUSER_ID, [module_id], None, {'overwrite': openerp.tools.config["overwrite_existing_translations"]})

** Also affects: ocb-server
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of OpenERP
Community Backports, which is subscribed to OpenERP Community Backports
(Server).
https://bugs.launchpad.net/bugs/1319285

Title:
  Module update does not overwrite existing therms when i18n-overwrite
  is set

Status in OpenERP Community Backports (Server):
  New
Status in OpenERP Server:
  New

Bug description:
  If the server is started with the "--i18n-overwrite"  option, it is entirely ignored when updating module in these two cases:
  - update from command line
  - update from module view

  In "tools/config.py", following is stated:
  "the i18n-overwrite option cannot be used without the i18n-import option or without the update option"

  I made a fix in _load_data in "modules/loading.py" where a context is created with the overwite option (was None before):
  # Update translations for all installed languages
  modobj.update_translations(cr, SUPERUSER_ID, [module_id], None, {'overwrite': openerp.tools.config["overwrite_existing_translations"]})

To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-server/+bug/1319285/+subscriptions


Follow ups

References