2 I schedule a phone call with a customer.
4 !python {model: crm.phonecall2phonecall}: |
5 context.update({'active_model': 'crm.phonecall', 'active_ids': [ref("crm.crm_phonecall_6")], 'active_id': ref("crm.crm_phonecall_6")})
6 res_id = self.create(cr, uid, {'name': "Proposition de réduction"}, context=context)
7 self.action_schedule(cr, uid, [res_id], context=context)
9 I schedule a meeting based on this phone call.
11 !python {model: crm.phonecall}: |
12 self.action_make_meeting(cr, uid, [ref("crm.crm_phonecall_6")])
14 I set the phone call to not held.
16 !python {model: crm.phonecall}: |
17 self.case_pending(cr, uid, [ref("crm.crm_phonecall_6")])
19 I check that the phone call is in 'Not Held' state.
21 !assert {model: crm.phonecall, id: crm.crm_phonecall_6, string: Phone call held.}:
24 I cancel the phone call.
26 !python {model: crm.phonecall}: |
27 self.case_cancel(cr, uid, [ref("crm.crm_phonecall_6")])
29 I check that the phone call is in 'Cancelled' state.
31 !assert {model: crm.phonecall, id: crm.crm_phonecall_6, string: Phone call is not cancelled.}:
34 I reset the phone call.
36 !python {model: crm.phonecall}: |
37 self.case_reset(cr, uid, [ref("crm.crm_phonecall_6")])
39 I check that the phone call is reset.
41 !assert {model: crm.phonecall, id: crm.crm_phonecall_6, string: Phone call is not reset.}:
44 I set phone call to held (done).
46 !python {model: crm.phonecall}: |
47 self.case_close(cr, uid, [ref("crm.crm_phonecall_6")])
49 I check that the phone call is in 'Held' state.
51 !assert {model: crm.phonecall, id: crm.crm_phonecall_6, string: Phone call is not held.}: