<commit_before>-
  I make direct opportunity for Customer.
-
  !python {model: crm.partner2opportunity}: |
    context.update({'active_model': 'res.partner', 'active_ids': [ref("base.res_partner_9")]})
    res_id = self.create(cr, uid, {'name': "enquête pour l'achat de services"}, context=context)
    self.make_opportunity(cr, uid, [res_id], context=context)
-
  I make another opportunity from phonecall for same customer.
-
  !python {model: crm.phonecall2opportunity}: |
    context.update({'active_model': 'crm.phonecall', 'active_ids': [ref("crm.crm_case_phone06")], 'active_id': ref("crm.crm_case_phone06")})
    res_id = self.create(cr, uid, {'name': "Quoi de prix de votre autre service?", 'partner_id': ref("base.res_partner_9")}, context=context)
    self.make_opportunity(cr, uid, [res_id], context=context)
-
  Now I merge all opportunities of customer.
-
  !python {model: crm.lead}: |
    opportunity_ids = self.search(cr, uid, [('partner_id','=', ref("base.res_partner_9"))])
-
  !record {model: crm.merge.opportunity, id: opportunity_merge_id }:
-
  !python {model: crm.merge.opportunity}: |
    self.action_merge(cr, uid, [ref("opportunity_merge_id")], context=context)
-
  I check for merged opportunities for customer. 
-
  !python {model: crm.lead}: |
    merge_id = self.search(cr, uid, [('partner_id','=', ref("base.res_partner_9"))])
    assert merge_id, 'Fail to create Merge opportunity'
    merge_data = self.browse(cr, uid, merge_id)[0]
    assert merge_data.type == 'opportunity', 'Merged opportunity type not change!'
    assert merge_data.partner_id.id == ref("base.res_partner_9"), 'Partner missmatch!'
-
  Now I schedule another phonecall to customer after merged.
-
  !python {model: crm.phonecall2phonecall}: |
    context.update({'active_model': 'crm.phonecall', 'active_ids': [ref("crm.crm_case_phone06")], 'active_id': ref("crm.crm_case_phone06")})
    res_id = self.create(cr, uid, {'name': "vos chances sont fusionnés en un seul"}, context=context)
    self.action_schedule(cr, uid, [res_id], context=context)
- 
  I schedule Meeting on this phonecall.
-
  !python {model: crm.phonecall}: |
    self.action_make_meeting(cr, uid, [ref("crm.crm_case_phone06")])
-
  I set Phone call to Not Held.
-
  !python {model: crm.phonecall}: |
    self.case_pending(cr, uid, [ref("crm.crm_case_phone06")])
-
  I check that the phone call is in 'Not Held' state. 
-
  !assert {model: crm.phonecall, id: crm.crm_case_phone06, string: Phone call held.}:
    - state == "pending"
-
  I Cancelled the Phone call. 
-
  !python {model: crm.phonecall}: |
    self.case_cancel(cr, uid, [ref("crm.crm_case_phone06")])
-
  I check that the phone call is in 'Cancelled' state.
-
  !assert {model: crm.phonecall, id: crm.crm_case_phone06, string: Phone call held.}:
    - state == "cancel"
-
  I Reset the Phone call. 
-
  !python {model: crm.phonecall}: |
    self.case_reset(cr, uid, [ref("crm.crm_case_phone06")])
-
  I check that the phone call is Reset or Not  
-
  !assert {model: crm.phonecall, id: crm.crm_case_phone06, string: Phone call held.}:
    - state == "open"
-
  I setting Phone call to Held (Done).
-
  !python {model: crm.phonecall}: |
    self.case_close(cr, uid, [ref("crm.crm_case_phone06")])
-
  I check that the phone call is in 'Held' state.
-
  !assert {model: crm.phonecall, id: crm.crm_case_phone06, string: Phone call held.}:
    - state == "done"<commit_msg>[ADD]CRM:use proper sentence case<commit_after>-
  I make direct opportunity for customer.
-
  !python {model: crm.partner2opportunity}: |
    context.update({'active_model': 'res.partner', 'active_ids': [ref("base.res_partner_9")]})
    res_id = self.create(cr, uid, {'name': "enquête pour l'achat de services"}, context=context)
    self.make_opportunity(cr, uid, [res_id], context=context)
-
  I make another opportunity from phonecall for same customer.
-
  !python {model: crm.phonecall2opportunity}: |
    context.update({'active_model': 'crm.phonecall', 'active_ids': [ref("crm.crm_case_phone06")], 'active_id': ref("crm.crm_case_phone06")})
    res_id = self.create(cr, uid, {'name': "Quoi de prix de votre autre service?", 'partner_id': ref("base.res_partner_9")}, context=context)
    self.make_opportunity(cr, uid, [res_id], context=context)
-
  Now I merge all opportunities of customer.
-
  !python {model: crm.lead}: |
    opportunity_ids = self.search(cr, uid, [('partner_id','=', ref("base.res_partner_9"))])
-
  !record {model: crm.merge.opportunity, id: opportunity_merge_id }:
-
  !python {model: crm.merge.opportunity}: |
    self.action_merge(cr, uid, [ref("opportunity_merge_id")], context=context)
-
  I check for merged opportunities for customer. 
-
  !python {model: crm.lead}: |
    merge_id = self.search(cr, uid, [('partner_id','=', ref("base.res_partner_9"))])
    assert merge_id, 'Fail to create Merge opportunity'
    merge_data = self.browse(cr, uid, merge_id)[0]
    assert merge_data.type == 'opportunity', 'Merged opportunity type not change!'
    assert merge_data.partner_id.id == ref("base.res_partner_9"), 'Partner missmatch!'
-
  Now I schedule another phonecall to customer after merged.
-
  !python {model: crm.phonecall2phonecall}: |
    context.update({'active_model': 'crm.phonecall', 'active_ids': [ref("crm.crm_case_phone06")], 'active_id': ref("crm.crm_case_phone06")})
    res_id = self.create(cr, uid, {'name': "vos chances sont fusionnés en un seul"}, context=context)
    self.action_schedule(cr, uid, [res_id], context=context)
- 
  I schedule meeting on this phonecall.
-
  !python {model: crm.phonecall}: |
    self.action_make_meeting(cr, uid, [ref("crm.crm_case_phone06")])
-
  I set phone call to not held.
-
  !python {model: crm.phonecall}: |
    self.case_pending(cr, uid, [ref("crm.crm_case_phone06")])
-
  I check that the phone call is in 'Not Held' state. 
-
  !assert {model: crm.phonecall, id: crm.crm_case_phone06, string: Phone call held.}:
    - state == "pending"
-
  I cancelled the phone call. 
-
  !python {model: crm.phonecall}: |
    self.case_cancel(cr, uid, [ref("crm.crm_case_phone06")])
-
  I check that the phone call is in 'Cancelled' state.
-
  !assert {model: crm.phonecall, id: crm.crm_case_phone06, string: Phone call held.}:
    - state == "cancel"
-
  I reset the phone call. 
-
  !python {model: crm.phonecall}: |
    self.case_reset(cr, uid, [ref("crm.crm_case_phone06")])
-
  I check that the phone call is reset or not  
-
  !assert {model: crm.phonecall, id: crm.crm_case_phone06, string: Phone call held.}:
    - state == "open"
-
  I setting phone call to held (done).
-
  !python {model: crm.phonecall}: |
    self.case_close(cr, uid, [ref("crm.crm_case_phone06")])
-
  I check that the phone call is in 'Held' state.
-
  !assert {model: crm.phonecall, id: crm.crm_case_phone06, string: Phone call held.}:
    - state == "done"
{'fraction_non_alphanumeric': 0.15446559297218154, 'fraction_numerical': 0.010248901903367497, 'mean_word_length': 4.2953488372093025, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6977578', 'n_tokens_mistral': 2550, 'n_tokens_neox': 2496, 'n_words': 620}