From 89d45ad9ecddcce6ed7f2e28209d9db210a333a7 Mon Sep 17 00:00:00 2001 From: Paramjit Singh Sahota Date: Thu, 14 Feb 2013 12:06:55 +0530 Subject: [PATCH] [IMP] Added message post for 'Invoice Paid.' when the invoice is paid in PO. bzr revid: psa@tinyerp.com-20130214063655-15kjqgc67fwcqw9f --- addons/purchase/purchase.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index e276ce0c48f..4ddc2bc9eb8 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -557,6 +557,7 @@ class purchase_order(osv.osv): def invoice_done(self, cr, uid, ids, context=None): self.write(cr, uid, ids, {'state':'approved'}, context=context) + self.message_post(cr, uid, ids, body=_("Invoice Paid."), context=context) return True def has_stockable_product(self, cr, uid, ids, *args):