# NewCompensation EditCompensation view

* refactors new and edit compensation views from function to class based
* adds checked property to compensation to return parent-intervention's checked info
* fixes bug where compensation could be added to recorded intervention
* updates translations
This commit is contained in:
2025-10-19 14:06:14 +02:00
parent 278a951e92
commit 73178b3fd2
7 changed files with 118 additions and 166 deletions

View File

@@ -510,6 +510,12 @@ class Compensation(AbstractCompensation, CEFMixin, CoherenceMixin, PikMixin):
return retval
@property
def checked(self):
if self.intervention:
return self.intervention.checked
return None
class CompensationDocument(AbstractDocument):
"""