Recently, I have been unable to export Customer Invoices list from the GTK client 5.0.16. But I could export supplier invoices and all other forms just as easy. I can also export customer invoices using the web interface and using NanTic Koo KDE client.
I usually get this error while trying to export customer invoices list :
Traceback (most recent call last):
File “/home/user/openERP/openerp-client-5.0.16/bin/modules/gui/main.py”, line 1334, in _sig_child_call
res = wid.handlers[button_name]()
File “/home/user/openERP/openerp-client-5.0.16/bin/modules/gui/window/form.py”, line 281, in sig_save_as
win = win_export.win_export(self.model, self.screen.ids_get(), self.screen.fields, fields, parent=self.window, context=self.context)
File “/home/user/openERP/openerp-client-5.0.16/bin/modules/gui/window/win_export.py”, line 174, in __init__
File “/home/user/openERP/openerp-client-5.0.16/bin/modules/gui/window/win_export.py”, line 241, in fill_predefwin
self.predef_model.append(([f[‘name’] for f in fields], export[‘name’], ‘, ‘.join([self.fields_data[f[‘name’]][‘string’] for f in fields])))
I found out comparing old and new backups of my database, that there’s a line in ir.exports table that’s not showing in the predefined export fields. Deleting all rows in this table made the client functioning as it used to.