feat(#46): show order code in admin

This commit is contained in:
mono
2026-08-08 13:29:14 -05:00
parent 4f41156056
commit 805565aa8e

View File

@@ -31,8 +31,9 @@ class SaleAdmin(admin.ModelAdmin):
"customer", "customer",
"payment_method", "payment_method",
"external_id", "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") list_filter = ("date", "customer__name", "payment_method")
@admin.register(SaleLine) @admin.register(SaleLine)
@@ -51,8 +52,9 @@ class CatalogSaleAdmin(admin.ModelAdmin):
"customer_address", "customer_address",
"pickup_method", "pickup_method",
"external_id", "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") list_filter = ("date", "customer_name", "pickup_method")