c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #19718
[Bug 739254] Re: Cannot export and Import Tax code templates
This exporting and importing using GTK does not work with Tax Templates
as well.
--
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/739254
Title:
Cannot export and Import Tax code templates
Status in OpenERP Server:
New
Bug description:
Using bzr stable pulled on 17mar2011
Using GTK client, one cannot import a csv file.
This is odd, as one can do for export and import other objects such as products and accounts. This bug was fixed in https://bugs.launchpad.net/bugs/672763 but does not work on Tax Template Codes.
Not sure if the get_name is not working correctly on this object.
example:
create demo company.
Export Tax Code Template to csv.
Delete list of Tax Codes Tempate ( as much as possible)
Then import csv file.
Error cannot find Plan Fees, however it is in the list.
Traceback (most recent call last):
File "/home/michael/openerp60/server/bin/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/home/michael/openerp60/server/bin/service/web_services.py", line 599, in dispatch
res = fn(db, uid, *params)
File "/home/michael/openerp60/server/bin/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/michael/openerp60/server/bin/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/michael/openerp60/server/bin/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/michael/openerp60/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/openerp60/server/bin/osv/orm.py", line 818, in process_liness
res = _get_id(relation, line[i], current_module, mode)
File "/home/michael/openerp60/server/bin/osv/orm.py", line 741, in _get_id
raise ValueError('No record found for %s' % (id,))
ValueError: No record found for Plan Fees
References