Remove subjects from notes.
bzr revid: daniel.watkins@credativ.co.uk-20100831154216-hikcdtped1jpa35w
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Add Note" col="4">
|
||||
<field name="subject"/>
|
||||
<field name="body" nolabel="1" colspan="4" default_focus="1"/>
|
||||
<separator string="" colspan="6"/>
|
||||
<group colspan="6" col="4" >
|
||||
|
||||
Reference in New Issue
Block a user