[IMP] Improve code for message

bzr revid: dbr@tinyerp.com-20110921111601-0m5upjqrrdm4y3eb
This commit is contained in:
DBR (OpenERP) 2011-09-21 16:46:01 +05:30
parent d6570bad4e
commit 3548d87cd7
1 changed files with 7 additions and 3 deletions

View File

@ -16,7 +16,7 @@
!python {model: crm.helpdesk}: |
msg = {
'subject': 'test_email',
'body': 'Testing',
'body_text': 'Testing',
'from': 'Administrator <admin@openerp.com>',
}
context = None
@ -39,12 +39,16 @@
vals = {}
msg = {
'subject': 'test_email',
'body': 'Testing',
'body_text': 'Testing',
'from': 'Administrator <admin@openerp.com>',
'priority': 'done'
}
context = None
default_act = 'pending'
self.message_update(cr, uid, [ref('crm_helpdesk_somefunctionalquestion0')], vals, msg, default_act, context)
try:
self.message_update(cr, uid,[ref('crm_helpdesk_somefunctionalquestion0')], msg,context)
except:
pass
- |
After a proper communication for the request via email I make sure that the request is fulfilled and
I close this HelpDesk Request by clicking on "Close" button.