【发布时间】:2013-10-16 16:35:52
【问题描述】:
我在 account.invoice 中添加了两个日期范围字段,它工作正常,但我无法在报告中打印日期。这是我的代码:
'date_from':fields.function(lambda *a,k:{}, method=True, type='date',string="Date from"), 'date_to':fields.function(lambda *a,k:{}, method=True, type='date',string="Date to"),
<field name="date_from" filter_domain="[('date_invoice','>=',self)]"/>
<field name="date_to" filter_domain="[('date_invoice','<=',self)]"/>
【问题讨论】:
标签: search report openerp date-range invoice