projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5c0c3a
)
[FIX] ir.qweb: avoid errors with function fields of type datetime
author
Olivier Dony
<odo@openerp.com>
Tue, 1 Apr 2014 16:06:23 +0000
(18:06 +0200)
committer
Olivier Dony
<odo@openerp.com>
Tue, 1 Apr 2014 16:06:23 +0000
(18:06 +0200)
bzr revid: odo@openerp.com-
20140401160623
-loj5nsph7tfnn1us
addons/website/models/ir_qweb.py
patch
|
blob
|
history
diff --git
a/addons/website/models/ir_qweb.py
b/addons/website/models/ir_qweb.py
index
64aad94
..
55c42d2
100644
(file)
--- a/
addons/website/models/ir_qweb.py
+++ b/
addons/website/models/ir_qweb.py
@@
-157,7
+157,7
@@
class DateTime(orm.AbstractModel):
value = datetime.datetime.strptime(
value, DEFAULT_SERVER_DATETIME_FORMAT)
if value:
- value = column.context_timestamp(
+ value = fields.datetime.context_timestamp(
cr, uid, timestamp=value, context=context)
value = value.strftime(openerp.tools.DEFAULT_SERVER_DATETIME_FORMAT)