Esempio n. 1
0
 def create_invoice(self, request, queryset):
     from koalixcrm.crm.views.newdocument import CreateNewDocumentView
     for obj in queryset:
         response = CreateNewDocumentView.create_new_document(
             self, request, obj, koalixcrm.crm.documents.invoice.Invoice,
             ("/admin/crm/" + obj.__class__.__name__.lower() + "/"))
         return response
Esempio n. 2
0
 def create_delivery_note(self, request, queryset):
     from koalixcrm.crm.views.newdocument import CreateNewDocumentView
     for obj in queryset:
         response = CreateNewDocumentView.create_new_document(self, request, obj,
                                        koalixcrm.crm.documents.deliverynote.DeliveryNote,
                                        ("/admin/crm/"+obj.__class__.__name__.lower()+"/"))
         return response
Esempio n. 3
0
 def create_purchase_order(self, request, queryset):
     from koalixcrm.crm.views.newdocument import CreateNewDocumentView
     for obj in queryset:
         response = CreateNewDocumentView.create_new_document(self, request, obj,
                                        koalixcrm.crm.documents.purchaseorder.PurchaseOrder,
                                        ("/admin/crm/"+obj.__class__.__name__.lower()+"/"))
         return response
Esempio n. 4
0
 def create_purchase_order(self, request, queryset):
     from koalixcrm.crm.views.newdocument import CreateNewDocumentView
     for obj in queryset:
         response = CreateNewDocumentView.create_new_document(self, request, obj,
                                        koalixcrm.crm.documents.purchaseorder.PurchaseOrder,
                                        ("/admin/crm/"+obj.__class__.__name__.lower()+"/"))
         return response