2 I start by creating a new phonecall.
4 !record {model: crm.phonecall, id: crm_phonecall_dummycall}:
5 date: !eval time.strftime('%Y-%m-%d 08:00:00')
8 section_id: crm.section_sales_department
9 partner_id: base.res_partner_agrolait
12 I change Contact Detail of the Partner.
14 !python {model: crm.phonecall}: |
15 self.onchange_partner_address_id(cr, uid,[ref("crm_phonecall_dummycall")], ref("base.res_partner_address_8invoice"))
18 I setting Phone call to Held (Done).
20 !python {model: crm.phonecall}: |
21 self.case_close(cr, uid, [ref("crm_phonecall_dummycall")])
23 I check that the hone call is in 'Held' state.
25 !assert {model: crm.phonecall, id: crm_phonecall_dummycall, string: Phone call Helded}: