<commit_before>-
  In order to test find nearest Partner functionality and assign to opportunity ,
-
  I Set Geo Lattitude and Longitude according to partner address.
-
  !python {model: res.partner}: |
    self.geo_localize(cr, uid, [ref('base.res_partner_ericdubois0')], context)
-
 I check Geo Latitude and Longitude of partner after set
-
  !python {model: res.partner}: |
    partner = self.browse(cr, uid, ref('base.res_partner_ericdubois0'))
    assert partner.partner_latitude == 50.4530495 , "Latitude is wrong"
    assert partner.partner_longitude == 3.9693885 , "Longitude is wrong"
-
  I assign nearest partner to opportunity.
-
  !python {model: crm.lead}: |
    self.assign_partner(cr, uid, [ref('crm.crm_case_abcfuelcounits0')], context=context)
-
  I check assigned partner of opportunity who is nearest Geo Latitude and Longitude of opportunity.
-
  !python {model: crm.lead}: |
    lead = self.browse(cr, uid, ref('crm.crm_case_abcfuelcounits0'))
    assert lead.partner_assigned_id.id == ref('base.res_partner_ericdubois0') , "Opportuniy is not assigned nearest partner"
    assert lead.partner_latitude == 50.8495239 , "Latitude is wrong"
    assert lead.partner_longitude == 4.3667002 , "Longitude is wrong"
-
  I forward this opportunity to its nearest partner.
-
  !python {model: crm.lead.forward.to.partner}: |
    context.update({'active_model': 'crm.lead', 'active_id': ref('crm.crm_case_abcfuelcounits0'), 'active_ids': [ref('crm.crm_case_abcfuelcounits0')]})
    forward_id = self.create(cr, uid, {'email_from': '<EMAIL>', 'send_to': 'partner'}, context=context)
    try:
      self.action_forward(cr, uid, [forward_id], context=context)
    except:
      pass<commit_msg>[Fix] crm_partner_assign :fix yml<commit_after>-
  In order to test find nearest Partner functionality and assign to opportunity ,
-
  I Set Geo Lattitude and Longitude according to partner address.
-
  !python {model: res.partner}: |
    self.geo_localize(cr, uid, [ref('base.res_partner_ericdubois0')], context)
-
 I check Geo Latitude and Longitude of partner after set
-
  !python {model: res.partner}: |
    partner = self.browse(cr, uid, ref('base.res_partner_ericdubois0'))
    assert partner.partner_latitude == 50.4530495 , "Latitude is wrong"
    assert partner.partner_longitude == 3.9693885 , "Longitude is wrong"
-
  I assign nearest partner to opportunity.
-
  !python {model: crm.lead}: |
    self.assign_partner(cr, uid, [ref('crm.crm_case_abcfuelcounits0')], context=context)
-
  I check assigned partner of opportunity who is nearest Geo Latitude and Longitude of opportunity.
-
  !python {model: crm.lead}: |
    lead = self.browse(cr, uid, ref('crm.crm_case_abcfuelcounits0'))
    assert lead.partner_assigned_id.id == ref('base.res_partner_ericdubois0') , "Opportuniy is not assigned nearest partner"
    assert lead.partner_latitude == 50.849873 , "Latitude is wrong"
    assert lead.partner_longitude == 4.3663151 , "Longitude is wrong"
-
  I forward this opportunity to its nearest partner.
-
  !python {model: crm.lead.forward.to.partner}: |
    context.update({'active_model': 'crm.lead', 'active_id': ref('crm.crm_case_abcfuelcounits0'), 'active_ids': [ref('crm.crm_case_abcfuelcounits0')]})
    forward_id = self.create(cr, uid, {'email_from': '<EMAIL>', 'send_to': 'partner'}, context=context)
    try:
      self.action_forward(cr, uid, [forward_id], context=context)
    except:
      pass
{'fraction_non_alphanumeric': 0.12423268050277697, 'fraction_numerical': 0.023677287342882197, 'mean_word_length': 4.519354838709678, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4643434', 'n_tokens_mistral': 1241, 'n_tokens_neox': 1166, 'n_words': 296}