Browse Source

Merge pull request #38 from morty29/8.0

FIX call of method _generic_reformat_phonenumbers() in the number.not.found wizard
pull/39/head
Alexis de Lattre 10 years ago
parent
commit
3d6ca5c789
  1. 2
      base_phone/wizard/number_not_found.py

2
base_phone/wizard/number_not_found.py

@ -61,7 +61,7 @@ class number_not_found(orm.TransientModel):
res = {}
if res.get('calling_number'):
convert = self.pool['phone.common']._generic_reformat_phonenumbers(
cr, uid, {'phone': res.get('calling_number')}, context=context)
cr, uid, None, {'phone': res.get('calling_number')}, context=context)
parsed_num = phonenumbers.parse(convert.get('phone'))
res['e164_number'] = phonenumbers.format_number(
parsed_num, phonenumbers.PhoneNumberFormat.INTERNATIONAL)

Loading…
Cancel
Save