credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #02345
[Bug 906821] Re: [6.0][6.1] Wrong module name on searching the 'code' translation
Hello Jean ,
I have checked this issue with latest trunk but I did not face any problem
as you said so would you please provide more information regarding this issue and
Correct me if I am wrong.
I have attached a video for your reference.
Thanks and waiting for replay!
** Changed in: openobject-server
Status: New => Incomplete
--
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:
Incomplete
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