【发布时间】:2014-07-18 19:35:51
【问题描述】:
我在 openerp 生成报告。那就是,我创建了 sxw 并将其转换为 rml,然后将 rml 转换为 pdf。现在工作正常。我的疑问是,当尝试获取日期和时间字段值时,它只获取日期。 pdf 报告中没有时间。
python 中的字段名称:'sample_receipt_date':datetime(....)
在 sxw 中:[[formatLang(o.sample_receipt_date,date=True)]]
转换pdf后:dd/mm/yy
但我想要这种格式为 dd/mm/yy/min/sec 的 pdf。
什么是sxw文档中的python编码?
【问题讨论】: