c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #05719
[Bug 665733] Re: [6.0RC1] export form does not open - error
** Changed in: openobject-client-web
Status: New => Confirmed
** Changed in: openobject-client-web
Assignee: (unassigned) => OpenERP SA's Web Client R&D (openerp-dev-web)
--
[6.0RC1] export form does not open - error
https://bugs.launchpad.net/bugs/665733
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject GTK Client: Confirmed
Status in Qt/KDE OpenObject Client: New
Status in OpenObject Web Client: Confirmed
Bug description:
extra-trunk/chricar_tools_export was used to create default export list with ALL fields of a model
reason: the field is not available in the form view, but in the export lists
IMHO the client should gracefully only display fields for export which are available/visible in the view for the current user
regardless if these are missing or just hidden.olding different fields.
I am thinking about hidden fields ( groups="base.group_extended")
I also think about models with different view definitions h
A stock worker should not be able to export the same fields as the stock manager using the stockmanagers predefined
list
Example
Traceback (most recent call last):
File "/sw/home/gass/OpenERP/trunk/openobject-client/bin/modules/gui/main.py", line 1324, in _sig_child_call
res = wid.handlers[button_name]()
File "/sw/home/gass/OpenERP/trunk/openobject-client/bin/modules/gui/window/form.py", line 286, 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 "/sw/home/gass/OpenERP/trunk/openobject-client/bin/modules/gui/window/win_export.py", line 213, in __init__
self.fill_predefwin()
File "/sw/home/gass/OpenERP/trunk/openobject-client/bin/modules/gui/window/win_export.py", line 280, 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])))
KeyError: u'ean13'
References