feat/46-order-summary-public #47
@@ -31,8 +31,9 @@ class SaleAdmin(admin.ModelAdmin):
|
||||
"customer",
|
||||
"payment_method",
|
||||
"external_id",
|
||||
"code",
|
||||
)
|
||||
search_fields = ("date", "customer__name", "payment_method", "external_id")
|
||||
search_fields = ("date", "customer__name", "payment_method", "external_id", "code")
|
||||
list_filter = ("date", "customer__name", "payment_method")
|
||||
|
||||
@admin.register(SaleLine)
|
||||
@@ -51,8 +52,9 @@ class CatalogSaleAdmin(admin.ModelAdmin):
|
||||
"customer_address",
|
||||
"pickup_method",
|
||||
"external_id",
|
||||
"code",
|
||||
)
|
||||
search_fields = ("date","customer_name", "customer_phone", "pickup_method","external_id")
|
||||
search_fields = ("date","customer_name", "customer_phone", "pickup_method","external_id", "code")
|
||||
list_filter = ("date", "customer_name", "pickup_method")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user