c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #17766
[Bug 726456] [NEW] translation problems when import while the data is translated
Public bug reported:
create an empty db (without demo data) in french.
- got to customer (shortcut "Client") list
- create a "Client" and don't forget to fill in "Pays" field (country_id)
- export the "Client" (with this field)
- in the csv you can see "Belgique"
- import this csv
-> error due to translation, the system doesn't know "Belgique" but
"Belgium"
L'import a échoué car : Traceback (most recent call last): File
"/home/aline/openerp/trunk/server/openerp/netsvc.py", line 410, in
dispatch result =
ExportService.getService(service_name).dispatch(method, auth, params)
File "/home/aline/openerp/trunk/server/openerp/service/web_services.py",
line 598, in dispatch res = fn(db, uid, *params) File
"/home/aline/openerp/trunk/server/openerp/osv/osv.py", line 122, in
wrapper return f(self, dbname, *args, **kwargs) File
"/home/aline/openerp/trunk/server/openerp/osv/osv.py", line 176, in
execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File
"/home/aline/openerp/trunk/server/openerp/osv/osv.py", line 167, in
execute_cr return getattr(object, method)(cr, uid, *args, **kw) File
"/home/aline/openerp/trunk/server/openerp/osv/orm.py", line 868, in
import_data process_liness(self, datas, [], current_module, self._name,
fields_def, position=position) File
"/home/aline/openerp/trunk/server/openerp/osv/orm.py", line 818, in
process_liness res = _get_id(relation, line[i], current_module, mode)
File "/home/aline/openerp/trunk/server/openerp/osv/orm.py", line 741, in
_get_id raise ValueError('No record found for %s' % (id,)) ValueError:
No record found for Belgique
-
** Affects: openobject-server
Importance: Medium
Assignee: OpenERP's Framework R&D (openerp-dev-framework)
Status: Confirmed
** Changed in: openobject-server
Importance: Undecided => Medium
** Changed in: openobject-server
Status: New => Confirmed
** Changed in: openobject-server
Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/726456
Title:
translation problems when import while the data is translated
Status in OpenERP Server:
Confirmed
Bug description:
create an empty db (without demo data) in french.
- got to customer (shortcut "Client") list
- create a "Client" and don't forget to fill in "Pays" field (country_id)
- export the "Client" (with this field)
- in the csv you can see "Belgique"
- import this csv
-> error due to translation, the system doesn't know "Belgique" but
"Belgium"
L'import a échoué car : Traceback (most recent call last): File
"/home/aline/openerp/trunk/server/openerp/netsvc.py", line 410, in
dispatch result =
ExportService.getService(service_name).dispatch(method, auth, params)
File
"/home/aline/openerp/trunk/server/openerp/service/web_services.py",
line 598, in dispatch res = fn(db, uid, *params) File
"/home/aline/openerp/trunk/server/openerp/osv/osv.py", line 122, in
wrapper return f(self, dbname, *args, **kwargs) File
"/home/aline/openerp/trunk/server/openerp/osv/osv.py", line 176, in
execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File
"/home/aline/openerp/trunk/server/openerp/osv/osv.py", line 167, in
execute_cr return getattr(object, method)(cr, uid, *args, **kw) File
"/home/aline/openerp/trunk/server/openerp/osv/orm.py", line 868, in
import_data process_liness(self, datas, [], current_module,
self._name, fields_def, position=position) File
"/home/aline/openerp/trunk/server/openerp/osv/orm.py", line 818, in
process_liness res = _get_id(relation, line[i], current_module, mode)
File "/home/aline/openerp/trunk/server/openerp/osv/orm.py", line 741,
in _get_id raise ValueError('No record found for %s' % (id,))
ValueError: No record found for Belgique
-
Follow ups
References