add product
This commit is contained in:
1 parent
423d4cf40e
commit
c8d45dd07c
58 files changed
+8309
-674
No files matched your search
+20
-7
@@ -1,3 +1,4 @@
|
||||
from utils.admin_base import CRMModelAdmin
|
||||
from django.contrib import admin
|
||||
from apps.customer.models import (
|
||||
Customer as CustomerModel,
|
||||
@@ -11,36 +12,48 @@ from apps.customer.models import (
|
||||
# Register your models here.
|
||||
|
||||
|
||||
class CustomerNoteInline(admin.TabularInline):
|
||||
model = CustomerNoteModel
|
||||
extra = 0
|
||||
fields = ["desc","cuser_role","created_at"]
|
||||
readonly_fields = fields
|
||||
can_delete = False
|
||||
show_change_link = True
|
||||
|
||||
def has_add_permission(self, request, obj=None):
|
||||
return False
|
||||
|
||||
|
||||
@admin.register(CustomerModel)
|
||||
class CustomerAdmin(admin.ModelAdmin):
|
||||
class CustomerAdmin(CRMModelAdmin):
|
||||
pass
|
||||
|
||||
|
||||
@admin.register(CustomerNoteModel)
|
||||
class CustomerNoteAdmin(admin.ModelAdmin):
|
||||
class CustomerNoteAdmin(CRMModelAdmin):
|
||||
pass
|
||||
|
||||
|
||||
@admin.register(ShiveAshenaeiModel)
|
||||
class ShiveAshenaeiAdmin(admin.ModelAdmin):
|
||||
class ShiveAshenaeiAdmin(CRMModelAdmin):
|
||||
pass
|
||||
|
||||
|
||||
@admin.register(ResponsibleGroupModel)
|
||||
class ResponsibleGroupAdmin(admin.ModelAdmin):
|
||||
class ResponsibleGroupAdmin(CRMModelAdmin):
|
||||
pass
|
||||
|
||||
|
||||
@admin.register(CustomerResponsibleModel)
|
||||
class CustomerResponsibleAdmin(admin.ModelAdmin):
|
||||
class CustomerResponsibleAdmin(CRMModelAdmin):
|
||||
pass
|
||||
|
||||
|
||||
@admin.register(CustomerGroupTypeModel)
|
||||
class CustomerGroupTypeAdmin(admin.ModelAdmin):
|
||||
class CustomerGroupTypeAdmin(CRMModelAdmin):
|
||||
pass
|
||||
|
||||
|
||||
@admin.register(CustomerGroupModel)
|
||||
class CustomerGroupAdmin(admin.ModelAdmin):
|
||||
class CustomerGroupAdmin(CRMModelAdmin):
|
||||
pass
|
||||
Reference in new issue
Block a user