[IMP]: add new filed to company object which will store the mesages
authorMantavya Gajjar <mga@tinyerp.com>
Tue, 15 Sep 2009 05:45:34 +0000 (11:15 +0530)
committerMantavya Gajjar <mga@tinyerp.com>
Tue, 15 Sep 2009 05:45:34 +0000 (11:15 +0530)
bzr revid: mga@tinyerp.com-20090915054534-7ancl4t5bcqsif7q

addons/account_followup/followup.py

index 459e3e3..9efd1d0 100644 (file)
@@ -55,6 +55,29 @@ class account_move_line(osv.osv):
     }
 account_move_line()
 
+class res_company(osv.osv):
+    _inherit = "res.company"
+    _columns = {
+        'follow_up_msg' : fields.text('Follow-up Message', translate=True),
+    }
+
+    _defaults = {
+        'overdue_msg': lambda *a: '''
+Date : %(date)s
+
+Dear %(partner_name)s,
+
+Please find in attachment a reminder of all your unpaid invoices, for a total amount due of:
+
+%(followup_amount).2f %(company_currency)s
+
+Thanks,
+--
+%(user_signature)s
+%(company_name)s
+        '''
+    }
+res_company()
 
 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: