[quote author=Joshua link=topic=16398.msg28054#msg28054 date=1400664076]
odoo已经帮我们想好办法了:
report_sxw.py
<br />def formatLang(self, value, digits=None, date=False, date_time=False, grouping=True, monetary=False, dp=False, currency_obj=False):<br /> """<br /> Assuming 'Account' decimal.precision=3:<br /> formatLang(value) -> digits=2 (default)<br /> formatLang(value, digits=4) -> digits=4<br /> formatLang(value, dp='Account') -> digits=3<br /> formatLang(value, digits=5, dp='Account') -> digits=5<br /> """<br />
```
[[formatLang(time.strftime('%d-%m-%Y %H:%M:%S'), date_time=True)]]
```
[/quote]
我在把[[formatLang(time.strftime('%d-%m-%Y %H:%M:%S'), date_time=True)]]放在rml里怎么显示不出时间呢?