[FIX] delivery: propagate additional fields in chained pickings
[odoo/odoo.git] / addons / crm / test / phonecalls.yml
1 -
2   I schedule a phone call with a customer.
3 -
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)
8 -
9   I schedule a meeting based on this phone call.
10 -
11   !python {model: crm.phonecall}: |
12     self.action_make_meeting(cr, uid, [ref("crm.crm_phonecall_6")])
13 -
14   I set the phone call to not held.
15 -
16   !python {model: crm.phonecall}: |
17     self.case_pending(cr, uid, [ref("crm.crm_phonecall_6")])
18 -
19   I check that the phone call is in 'Not Held' state.
20 -
21   !assert {model: crm.phonecall, id: crm.crm_phonecall_6, string: Phone call held.}:
22     - state == "pending"
23 -
24   I cancel the phone call.
25 -
26   !python {model: crm.phonecall}: |
27     self.case_cancel(cr, uid, [ref("crm.crm_phonecall_6")])
28 -
29   I check that the phone call is in 'Cancelled' state.
30 -
31   !assert {model: crm.phonecall, id: crm.crm_phonecall_6, string: Phone call is not cancelled.}:
32     - state == "cancel"
33 -
34   I reset the phone call.
35 -
36   !python {model: crm.phonecall}: |
37     self.case_reset(cr, uid, [ref("crm.crm_phonecall_6")])
38 -
39   I check that the phone call is reset.
40 -
41   !assert {model: crm.phonecall, id: crm.crm_phonecall_6, string: Phone call is not reset.}:
42     - state == "open"
43 -
44   I set phone call to held (done).
45 -
46   !python {model: crm.phonecall}: |
47     self.case_close(cr, uid, [ref("crm.crm_phonecall_6")])
48 -
49   I check that the phone call is in 'Held' state.
50 -
51   !assert {model: crm.phonecall, id: crm.crm_phonecall_6, string: Phone call is not held.}:
52     - state == "done"