From a9ad6627ac568bfe90ab2ef28b13400dc5b81d42 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Larchev=C3=AAque?= Date: Tue, 28 Feb 2012 15:55:24 -0500 Subject: [PATCH 1/1] fix annee --- project/rh/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 1.7.10.4