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",
"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")