[FIX] Account_followup:'Follow-up Sending Date' now prints the date from wizard

lp bug: https://launchpad.net/bugs/586706 fixed

bzr revid: mtr@mtr-20101116060720-ttwsryr2nsgcykk8
This commit is contained in:
mtr 2010-11-16 11:37:20 +05:30
parent f737366327
commit 2081b75988
2 changed files with 2 additions and 3 deletions

View File

@ -117,7 +117,7 @@
<font color="white"> </font>
</para>
<para style="terp_default_9">Document : Customer account statement</para>
<para style="terp_default_9">Date : [[ formatLang(time.strftime('%Y-%m-%d'),date = True) ]]</para>
<para style="terp_default_9">Date : [[ formatLang(data['form']['date'],date=True) ]]</para>
<para style="terp_default_9">Customer Ref : [[ o.ref or '' ]]</para>
<para style="terp_default_8">
<font color="white"> </font>

View File

@ -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',