diff --git a/addons/account_followup/report/account_followup_print.rml b/addons/account_followup/report/account_followup_print.rml index fb0f93b4a38..08dae5a82bc 100644 --- a/addons/account_followup/report/account_followup_print.rml +++ b/addons/account_followup/report/account_followup_print.rml @@ -117,7 +117,7 @@ Document : Customer account statement - Date : [[ formatLang(time.strftime('%Y-%m-%d'),date = True) ]] + Date : [[ formatLang(data['form']['date'],date=True) ]] Customer Ref : [[ o.ref or '' ]] diff --git a/addons/account_followup/wizard/account_followup_print.py b/addons/account_followup/wizard/account_followup_print.py index 18c455ac07a..174061438f8 100644 --- a/addons/account_followup/wizard/account_followup_print.py +++ b/addons/account_followup/wizard/account_followup_print.py @@ -319,13 +319,12 @@ class account_followup_print_all(osv.osv_memory): "WHERE id=%s", (to_update[id]['level'], date, int(id),)) - + data.update({'date': context['date']}) datas = { 'ids': [], 'model': 'account_followup.followup', 'form': data } - return { 'type': 'ir.actions.report.xml', 'report_name': 'account_followup.followup.print',