[FIX]: fix problem to get the detault message
authorMantavya Gajjar <mga@tinyerp.com>
Tue, 15 Sep 2009 09:51:33 +0000 (15:21 +0530)
committerMantavya Gajjar <mga@tinyerp.com>
Tue, 15 Sep 2009 09:51:33 +0000 (15:21 +0530)
bzr revid: mga@tinyerp.com-20090915095133-52t8294uj75h7a9i

addons/account_followup/wizard/wizard_followup_print.py

index 9d1f4c6..004f625 100644 (file)
@@ -156,6 +156,7 @@ class followup_all_print(wizard.interface):
                             if adr.email:
                                 dest = [adr.email]
                 src = tools.config.options['smtp_user']
+                #TODO : fix me to get message according to the partner language
                 body=data['form']['email_body']
                 total_amt = followup_data.debit - followup_data.credit
                 move_line = ''
@@ -257,7 +258,7 @@ class followup_all_print(wizard.interface):
                     partner_list.append(partner_id)
                 to_update[str(id)] = fups[followup_line_id][1]
         
-        message = pool.get('res.users').browse(cr, uid, uid).company_id.follow_up_msg
+        message = pool.get('res.users').browse(cr, uid, uid, context=context).company_id.follow_up_msg
         
         return {'partner_ids': partner_list, 'to_update': to_update, 'email_body':message}