3 I start by creating New helpdesk request regarding some functional questions.
4 I select Date at which helpdesk request is created.
6 !record {model: crm.helpdesk, id: crm_helpdesk_somefunctionalquestion0}:
7 date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
8 email_from: info@balmerinc.be
9 name: Some functional question.
10 partner_address_id: base.res_partner_address_1
11 partner_id: base.res_partner_9
12 section_id: crm.section_sales_department
16 !python {model: crm.helpdesk}: |
18 'subject': 'test_email',
20 'from': 'Administrator <admin@openerp.com>',
23 self.message_new(cr, uid,msg,context)
26 I check that the Helpdesk request is in 'Draft' state.
28 !assert {model: crm.helpdesk, id: crm_helpdesk_somefunctionalquestion0}:
31 In order to make this helpdesk request to be considered I make it "Open"
33 !python {model: crm.helpdesk}: |
34 self.case_open(cr, uid, [ref('crm_helpdesk_somefunctionalquestion0')])
36 Update the created message.
38 !python {model: crm.helpdesk}: |
41 'subject': 'test_email',
43 'from': 'Administrator <admin@openerp.com>',
46 default_act = 'pending'
47 self.message_update(cr, uid, [ref('crm_helpdesk_somefunctionalquestion0')], vals, msg, default_act, context)
49 After a proper communication for the request via email I make sure that the request is fulfilled and
50 I close this HelpDesk Request by clicking on "Close" button.
52 !python {model: crm.helpdesk}: |
53 self.case_close(cr, uid, [ref('crm_helpdesk_somefunctionalquestion0')])