From d756f85a2a86cbfda4140b17627cfd04a3a73a8a Mon Sep 17 00:00:00 2001 From: Amit Patel Date: Wed, 21 Nov 2012 15:02:00 +0530 Subject: [PATCH] [REM]:account:removed created from account bzr revid: apa@tinyerp.com-20121121093200-hx4pi4vvk54vgn1x --- addons/account/account_invoice.py | 7 ------- addons/account/data/account_data.xml | 4 ---- 2 files changed, 11 deletions(-) diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py index fc41bbf6df6..fc2dfcf5023 100644 --- a/addons/account/account_invoice.py +++ b/addons/account/account_invoice.py @@ -359,8 +359,6 @@ class account_invoice(osv.osv): context = {} try: res = super(account_invoice, self).create(cr, uid, vals, context) - if res: - self.create_send_note(cr, uid, [res], context=context) return res except Exception, e: if '"journal_id" viol' in e.args[0]: @@ -1315,11 +1313,6 @@ class account_invoice(osv.osv): } return type_dict.get(type, 'Invoice') - def create_send_note(self, cr, uid, ids, context=None): - for obj in self.browse(cr, uid, ids, context=context): - self.message_post(cr, uid, [obj.id], body=_("%s created.") % (self._get_document_type(obj.type)), - subtype="account.mt_invoice_new", context=context) - def confirm_paid_send_note(self, cr, uid, ids, context=None): for obj in self.browse(cr, uid, ids, context=context): self.message_post(cr, uid, [obj.id], body=_("%s paid.") % (self._get_document_type(obj.type)), diff --git a/addons/account/data/account_data.xml b/addons/account/data/account_data.xml index 2dfef225d70..73ddddb87c8 100644 --- a/addons/account/data/account_data.xml +++ b/addons/account/data/account_data.xml @@ -562,10 +562,6 @@ - - Created - account.invoice - Validated account.invoice