|
@ -68,7 +68,7 @@ class asterisk_server(osv.osv): |
|
|
prefix_to_check = self.read(cr, uid, i, [prefix])[prefix] |
|
|
prefix_to_check = self.read(cr, uid, i, [prefix])[prefix] |
|
|
if not prefix_to_check: |
|
|
if not prefix_to_check: |
|
|
if can_be_empty: |
|
|
if can_be_empty: |
|
|
return True |
|
|
|
|
|
|
|
|
continue |
|
|
else: |
|
|
else: |
|
|
return False |
|
|
return False |
|
|
else: |
|
|
else: |
|
@ -100,7 +100,7 @@ class asterisk_server(osv.osv): |
|
|
extension_priority_to_check = self.read(cr, uid, i, ['extension_priority'])['extension_priority'] |
|
|
extension_priority_to_check = self.read(cr, uid, i, ['extension_priority'])['extension_priority'] |
|
|
if extension_priority_to_check < 1: |
|
|
if extension_priority_to_check < 1: |
|
|
return False |
|
|
return False |
|
|
return True |
|
|
|
|
|
|
|
|
return True |
|
|
|
|
|
|
|
|
def _check_port(self, cr, uid, ids): |
|
|
def _check_port(self, cr, uid, ids): |
|
|
for i in ids: |
|
|
for i in ids: |
|
|