No request with shell.
This commit is contained in:
parent
f8c167bb8e
commit
2c52ca2501
|
@ -213,8 +213,11 @@ class Act(models.Model):
|
|||
self.valide = True
|
||||
else:
|
||||
self.valide = False
|
||||
get_request().record('act-update', '{obj_id} state changed to {state} by {user} from {ip}',
|
||||
try:
|
||||
get_request().record('act-update', '{obj_id} state changed to {state} by {user} from {ip}',
|
||||
obj_id=self.id, state=last_validation_state, user=author)
|
||||
except:
|
||||
pass
|
||||
self.save()
|
||||
|
||||
def is_billable(self):
|
||||
|
|
Reference in New Issue