From 5fc77d61d24bbb55763df8013a2ed50b74bd90c4 Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Tue, 31 Aug 2010 16:42:16 +0100 Subject: [PATCH] Remove subjects from notes. bzr revid: daniel.watkins@credativ.co.uk-20100831154216-hikcdtped1jpa35w --- addons/crm/wizard/crm_add_note.py | 4 +--- addons/crm/wizard/crm_add_note_view.xml | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/addons/crm/wizard/crm_add_note.py b/addons/crm/wizard/crm_add_note.py index 10b1012f86d..02c492b131c 100644 --- a/addons/crm/wizard/crm_add_note.py +++ b/addons/crm/wizard/crm_add_note.py @@ -9,7 +9,6 @@ class crm_add_note(osv.osv_memory): _description = "Add New Note" _columns = { - 'subject': fields.char('Subject', size=512, required=True), 'body': fields.text('Note Body', required=True), 'state': fields.selection(crm.AVAILABLE_STATES, string='Set New State To', required=True), } @@ -29,8 +28,7 @@ class crm_add_note(osv.osv_memory): user_obj = self.pool.get('res.users') user_name = user_obj.browse(cr, uid, [uid], context=context)[0].name case_pool.history(cr, uid, [case], _("Note"), history=True, - details=obj.body, subject=obj.subject, - email_from=user_name) + details=obj.body, email_from=user_name) if obj.state == 'unchanged': pass diff --git a/addons/crm/wizard/crm_add_note_view.xml b/addons/crm/wizard/crm_add_note_view.xml index a0e6d146f2a..bb6771c632a 100644 --- a/addons/crm/wizard/crm_add_note_view.xml +++ b/addons/crm/wizard/crm_add_note_view.xml @@ -10,7 +10,6 @@ form
-