← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 705198] Re: critical regression: datetime field break format and block the system!

 

Hello Raphaël Valyi, Cristian Salamea (Gnuthink)

There were improvements to support user modified date and time format settings from Administration/Translations/Language
both on Gtk client and server. 

You must be aware of the upstream Bug in strptime:
"Python's strftime supports only the format directives that are available on the platform's libc, so in order to  be 100% cross-platform we map to the directives required by  the C standard (1989 version), always available on platforms  with a C standard implementation."
To overcome this issue the changes at server were to replace the unsupported format directive with the supported ones. For more info check revision-info 3250 odo@xxxxxxxxxxx-20110112160608-ixrjyfsgib31nnx8

As per the trace back  posted :
ValueError: 'r' is a bad directive in format '%m/%d/%Y %r' 
It seems that you are using the updated code with old database. If you are trying this out with the old DB then it may create a problem. Try creating a new database with the latest stable V6 code.

The new database creation is required because the language entries has
already been created.So they have not passed through the format
conversion part.

Please do post back with your feedback after applying the necessary
steps .

Thanks,



** Changed in: openobject-client
       Status: Confirmed => Incomplete

** Changed in: openobject-client
   Importance: High => Medium

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

Title:
  critical regression: datetime field break format and block the system!

Status in OpenERP GTK Client:
  Incomplete
Status in OpenERP Web Client:
  Confirmed

Bug description:
  Hello in client at revno 1789 this bug is general for this field type,
  when +10d or whatever trying to change the value give me this error in
  client:

  Traceback (most recent call last):
    File "/home/ovnicraft/development/openerp/client/bin/widget/view/form_gtk/date_widget.py", line 172, in _on_key_press
      if self.callback_process: self.callback_process(False, self, event)
    File "/home/ovnicraft/development/openerp/client/bin/widget/view/form_gtk/date_widget.py", line 229, in _process_cb
      dt = tools.datetime_util.strptime(dt, self.widget.format)
    File "/usr/lib/python2.6/_strptime.py", line 317, in _strptime
      (bad_directive, format))
  ValueError: 'r' is a bad directive in format '%m/%d/%Y %r'

  
  In client the field is showed as attach





Follow ups

References