c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #34419
[Bug 861348] Re: not able to import customer due to payable an receivable fields
Hello,
As per the above steps I have faced the following traceback.Because
record didn't found for account payable and account receivable
(many2one) field and we have import data with those records reference.
Per per my "Opinion" it should gives a message for doesn't found record
instead of traceback.
Traceback (most recent call last):
File "/home/amp/workspace/trunk6/server/openerp/osv/osv.py", line 120, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/amp/workspace/trunk6/server/openerp/osv/osv.py", line 172, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/amp/workspace/trunk6/server/openerp/osv/osv.py", line 163, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/amp/workspace/trunk6/server/openerp/osv/orm.py", line 1376, in import_data
process_liness(self, datas, [], current_module, self._name, fields_def, position=position)
File "/home/amp/workspace/trunk6/server/openerp/osv/orm.py", line 1335, in process_liness
res = _get_id(relation, line[i], current_module, mode)
File "/home/amp/workspace/trunk6/server/openerp/osv/orm.py", line 1238, in _get_id
raise ValueError('No record found for %s' % (id,))
ValueError: No record found for X1111 Creditors - (test)
Thanks.
** Changed in: openobject-server
Importance: High => Medium
** 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 OpenERP Project Group.
https://bugs.launchpad.net/bugs/861348
Title:
not able to import customer due to payable an receivable fields
Status in OpenERP Server:
Confirmed
Bug description:
in web client :
- export customers from a db with demo data (export also fields payable and receivable account)
- import those data in a same db without demo data
-> all data seems ok
Click import :
[2011-09-28 12:08:29,167][?] INFO:werkzeug:127.0.0.1 - - [28/Sep/2011 12:08:29] "POST /web/import/detect_data HTTP/1.1" 200 -
[2011-09-28 12:08:30,756][?] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
File "/home/aline/openerp/server/trunk/openerp/osv/osv.py", line 119, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/aline/openerp/server/trunk/openerp/osv/osv.py", line 173, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/aline/openerp/server/trunk/openerp/osv/osv.py", line 164, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/aline/openerp/server/trunk/openerp/osv/orm.py", line 1335, in import_data
process_liness(self, datas, [], current_module, self._name, fields_def, position=position)
File "/home/aline/openerp/server/trunk/openerp/osv/orm.py", line 1294, in process_liness
res = _get_id(relation, line[i], current_module, mode)
File "/home/aline/openerp/server/trunk/openerp/osv/orm.py", line 1188, in _get_id
record_id = ir_model_data_obj._get_id(cr, uid, module, xml_id)
File "/home/aline/openerp/server/trunk/openerp/tools/cache.py", line 18, in lookup
r = self.lookup(self2, cr, *args)
File "/home/aline/openerp/server/trunk/openerp/tools/cache.py", line 46, in lookup
value = d[args] = self.method(self2, cr, *args)
File "/home/aline/openerp/server/trunk/openerp/addons/base/ir/ir_model.py", line 621, in _get_id
raise ValueError('No such external ID currently defined in the system: %s.%s' % (module, xml_id))
ValueError: No such external ID currently defined in the system: .res_partner_525
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/861348/+subscriptions
References