← Back to team overview

openerp-india team mailing list archive

[Bug 1247821] Re: Context value is not passed in JSON call of base_import

 

The original problem occurs in version 7.0-20131003-231232 (Ubuntu 12.04
LTS).

Now I tried the same import in another OpenERP instance (source from
2013-10-23) and everything was working correctly. The country_id
"Deutschland" has been recognized as "Germany". In both instances I have
installed both languages (en + de).

I have no idea where the difference between the instances is.
Can anyone confirm this issue?

-- 
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


References