[ADD/IMP] crm phonecall test cases added and Add note wizard added
[odoo/odoo.git] / addons / crm / test / test_crm_phonecall_case2.yml
1 - |
2   I start by creating a new phonecall.
3 -
4   !record {model: crm.phonecall, id: crm_phonecall_dummycall}:
5     date: !eval time.strftime('%Y-%m-%d 08:00:00')
6     name: Dummy call
7     duration: 0.0
8     section_id: crm.section_sales_department
9     partner_id: base.res_partner_agrolait
10     state: open
11 -
12   I change Contact Detail of the Partner.
13 -
14   !python {model: crm.phonecall}: |
15     self.onchange_partner_address_id(cr, uid,[ref("crm_phonecall_dummycall")], ref("base.res_partner_address_8invoice"))
16
17 -
18   I setting Phone call to Held (Done)
19 -
20   !python {model: crm.phonecall}: |
21     self.case_close(cr, uid, [ref("crm_phonecall_dummycall")])
22 -
23   I check that the hone call is in 'Held' state.
24 -
25   !assert {model: crm.phonecall, id: crm_phonecall_dummycall, string: Phone call Helded}:
26     - state == "done"