Commit 4a9f8e9f authored by jssuzanne's avatar jssuzanne
Browse files

Added profile name to deactivate publisher

branch : 8.0
parent 1d4546727fbf
......@@ -53,6 +53,9 @@ class AnyBusProfile(models.Model):
profile = config.get('anybus_profile')
if profile == 'deactivated':
if not profile:
self.write({'error': 'No profile found in configuration'})
return False
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment