openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #03482
[Bug 906821] Re: [6.0][6.1] Wrong module name on searching the 'code' translation
** Patch added: "With this patch the export is complete, however I have added a FIXME because I believe the correction could be better"
https://bugs.launchpad.net/bugs/906821/+attachment/2641065/+files/p0-get_module_from_path.patch
--
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:
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
References