← Back to team overview

openerp-india team mailing list archive

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

 

Hello,

Would you please try with the latest updated code.

If you still face the problem then you can reopen this with more
information.

Thanks.


** Changed in: openobject-server
       Status: Expired => Invalid

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, 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:
  Invalid

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


References