From 671730103e8bf1c584a6d9ad3e550c7ff0d00407 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Larchev=C3=AAque?= Date: Tue, 30 Aug 2011 16:21:46 -0400 Subject: [PATCH] #2059 --- project/dae/forms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/project/dae/forms.py b/project/dae/forms.py index c06fed9..9753b29 100644 --- a/project/dae/forms.py +++ b/project/dae/forms.py @@ -111,6 +111,8 @@ class FlexibleRemunForm(forms.ModelForm): def clean_devise(self): devise = self.cleaned_data['devise'] + if devise.code == 'EUR': + return devise implantation = ref.Implantation.objects.get(id=self.data['implantation']) liste_taux = devise.tauxchange_set.order_by('-annee').filter(implantation=implantation) if len(liste_taux) == 0: -- 1.7.10.4