openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #26617
[Bug 1247821] [NEW] Context value is not passed in JSON call of base_import
Public bug reported:
Problem:
========
I am using German values when I am importing many2one fields in CSV. For example I use the value "Deutschland" for the field "country_id" of res.partner. When validating the csv import, an error is shown which says that the value "Deutschland" is not available.
The language of the user is set to "de_DE".
Solution Approach
================
When I manually add the line "context.update({'lang': 'de_DE'})" in "location_name_search" of base/res/res_country.py then everything is working fine.
After some further investigation I found out that the json-call of "base_import.import:do" does not pass the context correctly. I think that the context should be passed like the option "dry_run" is.
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1247821
Title:
Context value is not passed in JSON call of base_import
Status in OpenERP Addons (modules):
New
Bug description:
Problem:
========
I am using German values when I am importing many2one fields in CSV. For example I use the value "Deutschland" for the field "country_id" of res.partner. When validating the csv import, an error is shown which says that the value "Deutschland" is not available.
The language of the user is set to "de_DE".
Solution Approach
================
When I manually add the line "context.update({'lang': 'de_DE'})" in "location_name_search" of base/res/res_country.py then everything is working fine.
After some further investigation I found out that the json-call of "base_import.import:do" does not pass the context correctly. I think that the context should be passed like the option "dry_run" is.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1247821/+subscriptions
Follow ups
References