[REF] crm_phonecall: refactored case management (directly in write + clickable status...
[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")])