← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 702294] Re: strftime() argument 1 must be str, not unicode

 

** Branch linked: lp:openobject-client

-- 
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/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





References