diff options
| author | Josse Colpaert <jco@openerp.com> | 2012-10-26 13:23:31 +0200 |
|---|---|---|
| committer | Josse Colpaert <jco@openerp.com> | 2012-10-26 13:23:31 +0200 |
| commit | 4cedd4a505671e4e50dbf40d1e1fbe866cbbaf91 (patch) | |
| tree | cf6a229325dae5cb684db5cd6958617284c34c61 | |
| parent | e02165d62fc70d08a67e1a98279f079699cadf22 (diff) | |
[IMP] wizard default values work
bzr revid: jco@openerp.com-20121026112331-k5aphdh5tfani5s1
| -rw-r--r-- | addons/account_followup/wizard/account_followup_print.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/addons/account_followup/wizard/account_followup_print.py b/addons/account_followup/wizard/account_followup_print.py index 74b6571f347..a9646b1733c 100644 --- a/addons/account_followup/wizard/account_followup_print.py +++ b/addons/account_followup/wizard/account_followup_print.py @@ -118,10 +118,7 @@ class account_followup_print(osv.osv_memory): # 'target': 'new', # } - _defaults = { - 'date': lambda *a: time.strftime('%Y-%m-%d'), - 'followup_id': _get_followup, - } + @@ -173,12 +170,14 @@ class account_followup_print(osv.osv_memory): return self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.follow_up_msg _defaults = { - 'email_body': _get_msg, + 'date': lambda *a: time.strftime('%Y-%m-%d'), + 'followup_id': _get_followup, + 'email_body': _get_msg, 'email_subject': _('Invoices Reminder'), 'partner_lang': True, 'partner_ids': _get_partners, 'summary': _get_summary, - } + } #account_followup_print() |
