c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #25482
[Bug 791117] [NEW] formatLang with date=True gives ValueError
Public bug reported:
I've put [[ formatLang(o.create_date, date=True) ]] in a sale.order report, but it returns None.
After getting into ipdb, I've found out that str(value) does not work.
Here is the relevant traceback:
ValueError: ValueErr...:28:04',)
> /home/akasha/versioning/bzr/openerp-6/server/bin/report/report_sxw.py(299)formatLang()
298 if date or date_time:
--> 299 if not str(value):
300 return ''
ipdb> value
'2011-06-01 09:28:04'
ipdb> str(value)
*** ValueError: unconverted data remains: 09:28:04
ipdb> value
'2011-06-01 09:28:04'
ipdb> type(value)
<class 'report.report_sxw._date_format'>
I'm using rev3356
** Affects: openobject-server
Importance: Undecided
Status: New
--
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/791117
Title:
formatLang with date=True gives ValueError
Status in OpenERP Server:
New
Bug description:
I've put [[ formatLang(o.create_date, date=True) ]] in a sale.order report, but it returns None.
After getting into ipdb, I've found out that str(value) does not work.
Here is the relevant traceback:
ValueError: ValueErr...:28:04',)
> /home/akasha/versioning/bzr/openerp-6/server/bin/report/report_sxw.py(299)formatLang()
298 if date or date_time:
--> 299 if not str(value):
300 return ''
ipdb> value
'2011-06-01 09:28:04'
ipdb> str(value)
*** ValueError: unconverted data remains: 09:28:04
ipdb> value
'2011-06-01 09:28:04'
ipdb> type(value)
<class 'report.report_sxw._date_format'>
I'm using rev3356
Follow ups
-
[Bug 791117] Re: formatLang with date=True gives ValueError
From: Olivier Dony (OpenERP), 2011-09-19
-
[Bug 791117] Re: formatLang with date=True gives ValueError
From: Yogesh(Open ERP), 2011-06-09
-
[Bug 791117] Re: formatLang with date=True gives ValueError
From: Launchpad Bug Tracker, 2011-06-09
-
[Bug 791117] Re: formatLang with date=True gives ValueError
From: Yogesh(Open ERP), 2011-06-09
-
[Bug 791117] Re: formatLang with date=True gives ValueError
From: Amit Parik (OpenERP), 2011-06-06
-
[Bug 791117] Re: formatLang with date=True gives ValueError
From: Ashvin Rathod (OpenERP), 2011-06-06
-
[Bug 791117] Re: formatLang with date=True gives ValueError
From: Launchpad Bug Tracker, 2011-06-06
-
[Bug 791117] Re: formatLang with date=True gives ValueError
From: Ashvin Rathod (OpenERP), 2011-06-06
-
[Bug 791117] Re: formatLang with date=True gives ValueError
From: Vinay Rana (openerp), 2011-06-02
-
[Bug 791117] [NEW] formatLang with date=True gives ValueError
From: ViktorNagy, 2011-06-01
References