Hi, client v6 rev1775 windows vista sp2. If I do this change, I have no error :
client\bin\widget\view\tree_gtk\parser.py line 431 : -fmt_length = len((DT.datetime.now()).strftime(display_format)) +fmt_length = len((DT.datetime.now()).strftime(str(display_format))) I used str but a best way should be to use ustr (to have no unicodeerror) : in the head of the file parser.py: import tools from tools import ustr line 431 : -fmt_length = len((DT.datetime.now()).strftime(display_format)) +fmt_length = len((DT.datetime.now()).strftime(ustr(display_format))) bye -- You received this bug notification because you are a member of OpenERP sa GTK client R&D, which is a bug assignee. https://bugs.launchpad.net/bugs/702294 Title: strftime() argument 1 must be str, not unicode Status in OpenObject GTK Client: Fix Released Bug description: I can't open all tree views with new version trunks client : 1772....server : 3257 strftime() argument 1 must be str, not unicode Traceback (most recent call last): File "/home/romain/openobject-client/bin/modules/gui/window/tree.py", line 209, in sig_open if not self.sig_action(widget, 'tree_but_open', warning=False): File "/home/romain/openobject-client/bin/modules/gui/window/tree.py", line 203, in sig_action warning=warning) File "/home/romain/openobject-client/bin/modules/action/main.py", line 199, in exec_keyword self._exec_action(action, data, context=context) File "/home/romain/openobject-client/bin/modules/action/main.py", line 143, in _exec_action limit=datas['limit'], auto_refresh=datas['auto_refresh'], auto_search = datas['auto_search'], search_view = datas['search_view']) File "/home/romain/openobject-client/bin/modules/gui/window/__init__.py", line 49, in create auto_refresh=auto_refresh, auto_search=auto_search, search_view=search_view) File "/home/romain/openobject-client/bin/modules/gui/window/form.py", line 73, in __init__ show_search=True, window=self.window, limit=limit, readonly=bool(auto_refresh), auto_search=auto_search, search_view=search_view) File "/home/romain/openobject-client/bin/widget/screen/screen.py", line 129, in __init__ view = self.add_view_id(view_id, view_type[0], help=help) File "/home/romain/openobject-client/bin/widget/screen/screen.py", line 582, in add_view_id toolbar=view.get('toolbar', False), submenu=view.get('submenu', False), context=context) File "/home/romain/openobject-client/bin/widget/screen/screen.py", line 610, in add_view from widget.view.widget_parse import widget_parse File "/home/romain/openobject-client/bin/widget/view/widget_parse.py", line 27, in <module> import tree_gtk File "/home/romain/openobject-client/bin/widget/view/tree_gtk/__init__.py", line 22, in <module> from parser import * File "/home/romain/paperflow/openobject-client/bin/widget/view/tree_gtk/parser.py", line 428, in <module> class Date(GenericDate): File "/home/romain/paperflow/openobject-client/bin/widget/view/tree_gtk/parser.py", line 431, in Date fmt_length = len((DT.datetime.now()).strftime(display_format)) TypeError: strftime() argument 1 must be str, not unicode _______________________________________________ Mailing list: https://launchpad.net/~openerp-dev-gtk Post to : [email protected] Unsubscribe : https://launchpad.net/~openerp-dev-gtk More help : https://help.launchpad.net/ListHelp

