c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #11861
[Bug 701054] Re: [v6rc2] crm schedule another phonecall - wrong dateformat
Hello Somesh,
the problem regards to the crm module. If I choose in the Menu "Phone
Calls" and select either "Inbound" or "Outbound" I get the list view of
the phone calls.
Now i choose one of the calls and get the form view. In the form view
there's the button "Schedule other call". This starts an Ajax Window
called "Schedule Other Call".
In the English (non-translated Version) I can choose a date and a time
from the calendar. This gives back the following string: "11/23/2010
16:03:00" (next problem is that it chooses 2010 and not 2011 as default
year). If I press the button "Schedule ->" everything is fine and the
call is scheduled.
In the localized version (in my case German) the string provided by the interface is: "11/23/2010 04:03:00 PM", if i choose a date and a time from the calender I get the following string: "11/25/2010 %r".
Even if I choose the first string an error occurs: "Ungültiges Datums/Zeitformat" (which means Wrong Date/Timeformat")!
Now I checked the behavior in the calendar and discovered that the
problem also occurs here - ONLY in the localized version!
There was a traceback:
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 599, in dispatch
res = fn(db, uid, *params)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/openerp/addons/base_calendar/base_calendar.py", line 958, in onchange_dates
start = datetime.strptime(start_date, "%Y-%m-%d %H:%M:%S")
File "/usr/lib/python2.6/_strptime.py", line 325, in _strptime
(data_string, format))
ValueError: time data '01/19/2011 %r' does not match format '%Y-%m-%d %H:%M:%S'
As you can see from the traceback the order of the string doesn't match
the expected order by OpenERP.
If you are able to fix this I would propose for the German Version the
German Notation which is '%d.%m.%Y %H:%M:%S'
Hope this helps
Best regards Felix
--
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/701054
Title:
[v6rc2] crm schedule another phonecall - wrong dateformat
Status in OpenObject Web Client:
Incomplete
Bug description:
web-client revno: 4287
When I try to schedule a new phonecall from in- or outbound calls the wizard accepts the input of the english interface - in the localized version it appends a "p.m." and complains about the wrong dateformat.
Best regards
Felix Schubert
References