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