From d641b4cc1cd03aa57979ea94715f8209cfaeaf44 Mon Sep 17 00:00:00 2001
From: Yohann D'ANELLO <yohann.danello@gmail.com>
Date: Sun, 22 Mar 2020 15:33:48 +0100
Subject: [PATCH] Can't change which BDE has editted the invoice

---
 apps/treasury/forms.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/treasury/forms.py b/apps/treasury/forms.py
index 56fcce27..ad7e2c5c 100644
--- a/apps/treasury/forms.py
+++ b/apps/treasury/forms.py
@@ -20,7 +20,7 @@ class InvoiceForm(forms.ModelForm):
 
     class Meta:
         model = Invoice
-        fields = '__all__'
+        exclude = ('bde', )
 
 
 ProductFormSet = forms.inlineformset_factory(
-- 
GitLab