X-Git-Url: http://git.auf.org/?p=auf_rh_dae.git;a=blobdiff_plain;f=project%2Frh%2Fmodels.py;h=6a38a74c7bde4d5b83b4142fb2eac98cba0587b0;hp=a8bacd18645b353ad8ecc502d5fff3c3c342b16d;hb=a9ad6627ac568bfe90ab2ef28b13400dc5b81d42;hpb=5a64aab4ec0ef8acc7a8f8c8954ca1a129e0139e diff --git a/project/rh/models.py b/project/rh/models.py index a8bacd1..6a38a74 100644 --- a/project/rh/models.py +++ b/project/rh/models.py @@ -699,7 +699,7 @@ class DossierComparaison_(models.Model): abstract = True def taux_devise(self): - annee = self.dossier.poste.date_debut.year + annee = self.dossier.contrat_date_debut.year: taux = [tc.taux for tc in TauxChange.objects.filter(devise=self.devise, annee=annee)] taux = set(taux) if len(taux) != 1: