← Back to team overview

credativ team mailing list archive

[Bug 906821] [NEW] [6.0][6.1] Wrong module name on searching the 'code' translation

 

Public bug reported:

The code translation is not exported if you use a module path start with another module path
for exemple:
in conf file: addons_path = /home/syleam/openerp/addons,/home/syleam/openerp/addons-syleam
the module foo is in addons-syleam module path
When we export the translation, we search the name of the module in the function trans_generate/export_code_terms_from_file.
Whereas the name returned by the method get_module_from_path is 'syleam'. However 'syleam' is not one of the installed modules.
The get_module_from_path method uses the first module path found but this path isn't the correct path. The correct path is the second and the correct module name is foo.
The tests were performed on linux with the latest server revno for v 6.0. I looked in v 6.1 and the code is the same.

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

-- 
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/906821

Title:
  [6.0][6.1] Wrong module name on searching the 'code' translation

Status in OpenERP Server:
  New

Bug description:
  The code translation is not exported if you use a module path start with another module path
  for exemple:
  in conf file: addons_path = /home/syleam/openerp/addons,/home/syleam/openerp/addons-syleam
  the module foo is in addons-syleam module path
  When we export the translation, we search the name of the module in the function trans_generate/export_code_terms_from_file.
  Whereas the name returned by the method get_module_from_path is 'syleam'. However 'syleam' is not one of the installed modules.
  The get_module_from_path method uses the first module path found but this path isn't the correct path. The correct path is the second and the correct module name is foo.
  The tests were performed on linux with the latest server revno for v 6.0. I looked in v 6.1 and the code is the same.

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


Follow ups

References