# 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:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user