From: Olivier Larchevêque Date: Tue, 28 Feb 2012 20:55:24 +0000 (-0500) Subject: fix annee X-Git-Tag: DAE+RH~37 X-Git-Url: http://git.auf.org/?p=auf_rh_dae.git;a=commitdiff_plain;h=a9ad6627ac568bfe90ab2ef28b13400dc5b81d42;hp=5a64aab4ec0ef8acc7a8f8c8954ca1a129e0139e fix annee --- 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: