ADD: add a cleared event status to indicate the financal clearance.

This commit is contained in:
2019-08-29 10:29:14 +02:00
parent 51f276d719
commit cbc69d4589
6 changed files with 95 additions and 5 deletions

View File

@@ -30,6 +30,7 @@ DEFAULT_EVENT_STATI = {
'published_web': (79, _(u'Veröffentlicht (Web)'), 'success'),
'published': (80, _(u'Veröffentlicht'), 'success'),
'expired': (100, _(u'Ausgelaufen'), None),
'cleared': (110, _(u'Abgerechnet'), 'black'),
}
@@ -429,6 +430,9 @@ class BasicWorkflow(object):
elif permission == 'publish':
if has_role(user, 'publisher'):
return True
elif permission == 'clear':
if has_role(user, 'manager_super'):
return True
elif permission == 'update':
if not self.has_reached_status('submitted'):
if user == event.owner: