I added two fields in my account_invoice.py for the date range i.e date_from and date_to to select a few number records falling into the range and i want to use the value of these fields in my report also as date_from: value to date_to:value. I tried using these fields in my report but it gives a blank array or [] in place of its value. Please help anyone who knows.
my fields:
'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"),
and in search_view:
<field name="date_from" filter_domain="[('date_invoice','>=',self)]"/>
<field name="date_to" filter_domain="[('date_invoice','<=',self)]"/>
Anyone please! Still struggling for the same.