Compensation enhancements

* compensations won't be listed in index table if related intervention has been deleted
* adds functionality for intervention remove button
* adds outcommented code
* adds configurable redirect_url for RemoveModalForm's process_request method
* adds translation
This commit is contained in:
mipel
2021-08-02 15:39:33 +02:00
parent d203046666
commit 63b2d3ef66
8 changed files with 17 additions and 34 deletions
-4
View File
@@ -143,13 +143,9 @@ class Intervention(BaseObject):
)
for com in coms:
com.deleted = action
#com.deleted_on = _now
#com.deleted_by = _user
com.save()
self.deleted = action
#self.deleted_on = _now
#self.deleted_by = _user
self.save()
@staticmethod