c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #36793
[Bug 885712] Re: Does not create new address when importing new customer
Hello,
Your video can't help and screen is blank. Would you please reattached.
Thanks and waiting for your reply.
--
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/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