Fix bug when the party or its relationshsips have not phones

This commit is contained in:
NaN?tic 2014-05-22 15:46:37 +02:00
parent da78ac1b70
commit 8a05c08b02
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class SaleAsterisk(Wizard):
mechanisms = list(set(mechanisms))
return {
'allowed_contacts_mechanisms': [m.id for m in mechanisms],
'contact_mechanisms': mechanisms[0].id
'contact_mechanisms': mechanisms and mechanisms[0].id or None
}
def transition_dial(self, values=False):