Add Unchanged state to Send New Email wizard.

bzr revid: daniel.watkins@credativ.co.uk-20100901094628-rlb7gv8njzxxc82l
This commit is contained in:
Daniel Watkins
2010-09-01 10:46:28 +01:00
parent c75a9f35e1
commit 888493fedd
+5 -1
View File
@@ -28,6 +28,10 @@ import itertools
import tools
import re
AVAILABLE_STATES = crm.AVAILABLE_STATES + [('unchanged', 'Unchanged')]
class crm_send_new_email_attachment(osv.osv_memory):
_name = 'crm.send.mail.attachment'
@@ -51,7 +55,7 @@ class crm_send_new_email(osv.osv_memory):
'email_cc' : fields.char('CC', size=512, help="These addresses will receive a copy of this email. To modify the permanent CC list, edit the global CC field of this case"),
'subject': fields.char('Subject', size=512, required=True),
'body': fields.text('Message Body', required=True),
'state': fields.selection(crm.AVAILABLE_STATES, string='Set New State To', required=True),
'state': fields.selection(AVAILABLE_STATES, string='Set New State To', required=True),
'attachment_ids' : fields.one2many('crm.send.mail.attachment', 'wizard_id'),
}