From 47b3aafee2569caa517e936f471eff6ea53d1eec Mon Sep 17 00:00:00 2001 From: Aaron Riedener Date: Wed, 20 Sep 2017 00:25:59 +0200 Subject: [PATCH] fixed obsolete settings which was caused by the restructuring of the proejct --- apps/crm/admin.py | 9 ++++----- manage.py | 0 2 files changed, 4 insertions(+), 5 deletions(-) mode change 100644 => 100755 manage.py diff --git a/apps/crm/admin.py b/apps/crm/admin.py index d2fc2756..40f3d670 100644 --- a/apps/crm/admin.py +++ b/apps/crm/admin.py @@ -613,17 +613,16 @@ class OptionCustomer(admin.ModelAdmin): pluginProcessor = PluginProcessor() inlines.extend(pluginProcessor.getPluginAdditions("customerInline")) - @staticmethod - def createContract(request, queryset): + def createContract(self, request, queryset): for obj in queryset: contract = obj.createContract(request) response = HttpResponseRedirect('/admin/crm/contract/' + str(contract.id)) - return response + return response createContract.short_description = _("Create Contract") @staticmethod - def createQuote(queryset): + def createQuote(self, request, queryset): for obj in queryset: quote = obj.createQuote() response = HttpResponseRedirect('/admin/crm/quote/' + str(quote.id)) @@ -632,7 +631,7 @@ def createQuote(queryset): createQuote.short_description = _("Create Quote") @staticmethod - def createInvoice(queryset): + def createInvoice(self, request, queryset): for obj in queryset: invoice = obj.createInvoice() response = HttpResponseRedirect('/admin/crm/invoice/' + str(invoice.id)) diff --git a/manage.py b/manage.py old mode 100644 new mode 100755