Skip to content

Commit

Permalink
fixed obsolete settings which was caused by the restructuring of the …
Browse files Browse the repository at this point in the history
…proejct
  • Loading branch information
scaphilo committed Sep 19, 2017
1 parent d3de7cf commit 47b3aaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions apps/crm/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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))
Expand Down
Empty file modified manage.py
100644 → 100755
Empty file.

0 comments on commit 47b3aaf

Please sign in to comment.