← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 759563] Re: Importing of an exported .csv does not work when there is a parent id.

 

*** This bug is a duplicate of bug 727467 ***
    https://bugs.launchpad.net/bugs/727467

** This bug has been marked a duplicate of bug 727467
   client crash importing data
 * You can subscribe to bug 727467 by following this link: https://bugs.launchpad.net/openobject-server/+bug/727467/+subscribe

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

Title:
  Importing of an exported .csv does not work when there is a parent id.

Status in OpenERP Server:
  Confirmed

Bug description:
  Importing of an exported .csv does not work when there is a parent id.

  To test:
  Create new demo company with warehouse and sales management with belgium accounts.
  Export product categories to .csv file, then import the  same .csv file.
  Check traceball below for error.
  Seems like "All products / Sellable" cannot parent id correctly.
  Attached is the test.csv file.
  As far as I know this was fixed in a previous bug, which I cant seem to find. I think it was when V6 was not stable yet. 
  This may have something to do with getName function.

  thank you.

  *********************************************************
  Using: Ubuntu stable 6.02 bzr pulled 7apr2011

  Traceball:
  Environment Information : 
  System : Linux-2.6.31-14-generic-i686-with-Ubuntu-9.10-karmic
  OS Name : posix
  Distributor ID:	Ubuntu
  Description:	Ubuntu 9.10
  Release:	9.10
  Codename:	karmic
  Operating System Release : 2.6.31-14-generic
  Operating System Version : #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009
  Operating System Architecture : 32bit
  Operating System Locale : en_US.UTF8
  Python Version : 2.6.4
  OpenERP-Client Version : 6.0.2
  Last revision No. & ID :1833 vmt@xxxxxxxxxxx-20110408115932-ld19lf24tugnebwy
  Traceback (most recent call last):
    File "/home/michael/openerp602/server/bin/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/home/michael/openerp602/server/bin/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/home/michael/openerp602/server/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/michael/openerp602/server/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/michael/openerp602/server/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/michael/openerp602/server/bin/osv/orm.py", line 868, in import_data
      process_liness(self, datas, [], current_module, self._name, fields_def, position=position)
    File "/home/michael/openerp602/server/bin/osv/orm.py", line 818, in process_liness
      res = _get_id(relation, line[i], current_module, mode)
    File "/home/michael/openerp602/server/bin/osv/orm.py", line 741, in _get_id
      raise ValueError('No record found for %s' % (id,))
  ValueError: No record found for All products / Sellable



References