[IMP] improve crm_partner_assing demo file
[odoo/odoo.git] / addons / crm / test / phonecalls.yml
1 -
2   Salesman check the phone calls data so test with the access rights of salesman.
3 -
4   !context
5     uid: 'crm_res_users_salesman'
6 -
7   I schedule a phone call with a customer.
8 -
9   !python {model: crm.phonecall2phonecall}: |
10     context.update({'active_model': 'crm.phonecall', 'active_ids': [ref("crm.crm_phonecall_6")], 'active_id': ref("crm.crm_phonecall_6")})
11     res_id = self.create(cr, uid, {'name': "Proposition de réduction"}, context=context)
12     self.action_schedule(cr, uid, [res_id], context=context)
13 -
14   I schedule a meeting based on this phone call.
15 -
16   !python {model: crm.phonecall}: |
17     self.action_make_meeting(cr, uid, [ref("crm.crm_phonecall_6")])