diff options
| author | Amit Patel <apa@tinyerp.com> | 2012-11-21 15:02:00 +0530 |
|---|---|---|
| committer | Amit Patel <apa@tinyerp.com> | 2012-11-21 15:02:00 +0530 |
| commit | d756f85a2a86cbfda4140b17627cfd04a3a73a8a (patch) | |
| tree | 5d9835346599532e00c99e8a134a7f5d071b0bc7 /addons | |
| parent | cccf87cb5e3a06cbb267f147d0a861edcc6dea6a (diff) | |
[REM]:account:removed created from account
bzr revid: apa@tinyerp.com-20121121093200-hx4pi4vvk54vgn1x
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/account/account_invoice.py | 7 | ||||
| -rw-r--r-- | addons/account/data/account_data.xml | 4 |
2 files changed, 0 insertions, 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 <b>created</b>.") % (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 <b>paid</b>.") % (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 @@ </record> <!-- mail: subtypes --> - <record id="mt_invoice_new" model="mail.message.subtype"> - <field name="name">Created</field> - <field name="res_model">account.invoice</field> - </record> <record id="mt_invoice_validated" model="mail.message.subtype"> <field name="name">Validated</field> <field name="res_model">account.invoice</field> |
