# 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:
mpeltriaux committed 2025-10-19 14:06:14 +02:00
1 parent 278a951e92
commit 73178b3fd2
7 files changed
+118 -166

No files matched your search

+6
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):
"""