← Back to team overview

openerp-india team mailing list archive

[Bug 885712] Re: Does not create new address when importing new customer

 

I have updated my 6.1 version and have for revision no: 
server: 3783, addons: 5511, web: 1413

I have done the same operation but still no success.
All I have installed is the sales module in my database. No customized field.

I have attached the video of my operation and notice that this time I left the customer that has been created in my database in the csv file. Here is the bug script: 
The import failed due to:No record found for 4498789909993, Traceback (most recent call last): File "/home/openerp/openerp/6.1/openerp-web/addons/web/common/openerplib/main.py", line 257, in send result = openerp.netsvc.dispatch_rpc(service_name, method, args) File "/home/openerp/openerp/6.1/openobject-server/openerp/netsvc.py", line 325, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/home/openerp/openerp/6.1/openobject-server/openerp/service/web_services.py", line 580, in dispatch res = fn(db, uid, *params) File "/home/openerp/openerp/6.1/openobject-server/openerp/osv/osv.py", line 120, in wrapper return f(self, dbname, *args, **kwargs) File "/home/openerp/openerp/6.1/openobject-server/openerp/osv/osv.py", line 172, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/home/openerp/openerp/6.1/openobject-server/openerp/osv/osv.py", line 163, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/home/openerp/openerp/6.1/openobject-server/openerp/osv/orm.py", line 1381, in import_data process_liness(self, datas, [], current_module, self._name, fields_def, position=position) File "/home/openerp/openerp/6.1/openobject-server/openerp/osv/orm.py", line 1317, in process_liness res = many_ids(line[i], relation, current_module, mode) File "/home/openerp/openerp/6.1/openobject-server/openerp/osv/orm.py", line 1289, in many_ids res.append(_get_id(relation, db_id, current_module, mode)) File "/home/openerp/openerp/6.1/openobject-server/openerp/osv/orm.py", line 1242, in _get_id raise ValueError('No record found for %s' % (id,)) ValueError: No record found for 4498789909993 



** Attachment added: "Bug_Import2.mp4"
   https://bugs.launchpad.net/openobject-addons/+bug/885712/+attachment/2589440/+files/Bug_Import2.mp4

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

Title:
  Does not create new address when importing new customer

Status in OpenERP Addons (modules):
  Incomplete

Bug description:
  In Customers list/search view  (Sales/Address Book/Customers), I did an import of a file with the following data:
  "name","address/phone"
  "Amazon","testets"

  When pressing the import button, a bug message appears (see below) stopping the execution of the import. 
  The problem is linked to the fact that the system doesn't find any record for the address contact. However the system should create a new address contact if it doesn't find it. 

  Bug message
  The import failed due to:No record found for testets, Traceback (most recent call last): File "/home/openerp/source/web/trunk/addons/web/common/openerplib/main.py", line 245, in send result = openerp.netsvc.dispatch_rpc(service_name, method, args) File "/home/openerp/source/server/trunk/openerp/netsvc.py", line 325, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/home/openerp/source/server/trunk/openerp/service/web_services.py", line 580, in dispatch res = fn(db, uid, *params) File "/home/openerp/source/server/trunk/openerp/osv/osv.py", line 120, in wrapper return f(self, dbname, *args, **kwargs) File "/home/openerp/source/server/trunk/openerp/osv/osv.py", line 172, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/home/openerp/source/server/trunk/openerp/osv/osv.py", line 163, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/home/openerp/source/server/trunk/openerp/osv/orm.py", line 1381, in import_data process_liness(self, datas, [], current_module, self._name, fields_def, position=position) File "/home/openerp/source/server/trunk/openerp/osv/orm.py", line 1317, in process_liness res = many_ids(line[i], relation, current_module, mode) File "/home/openerp/source/server/trunk/openerp/osv/orm.py", line 1289, in many_ids res.append(_get_id(relation, db_id, current_module, mode)) File "/home/openerp/source/server/trunk/openerp/osv/orm.py", line 1242, in _get_id raise ValueError('No record found for %s' % (id,)) ValueError: No record found for testets

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/885712/+subscriptions


References