I added two fields for date range in account.invoice, it works fine but i am not able to print the dates in report. Here is my code:
'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)]"/>