#51 feat: API de categorias de productos
Issue #51: discriminacion y administracion de categorias de productos. - ProductCategoryView en /api/product_categories (list/retrieve IsNotPublico, mutaciones admin): filtro ?active, PATCH de description/alternative_name/active - POST deactivate/activate con body {ids} -> {deactivated|activated, failed} (ignora ids inexistentes) - POST import_from_external admin via CategoryTrytonService - create/destroy deshabilitados (la fuente de categorias es Tryton)
This commit is contained in:
@@ -8,6 +8,8 @@ from .api import (
|
||||
# Products
|
||||
ProductView,
|
||||
ProductsFromTrytonView,
|
||||
# Product Categories
|
||||
ProductCategoryView,
|
||||
# Customers
|
||||
CustomerView,
|
||||
CustomersFromTrytonView,
|
||||
@@ -45,6 +47,11 @@ router.register(r"sales", SaleView, basename="sale")
|
||||
router.register(r"catalog_sales", CatalogSaleView, basename="catalog_sale")
|
||||
router.register(r"customers", CustomerView, basename="customer")
|
||||
router.register(r"products", ProductView, basename="product")
|
||||
router.register(
|
||||
r"product_categories",
|
||||
ProductCategoryView,
|
||||
basename="product_category",
|
||||
)
|
||||
router.register(
|
||||
r"catalogue_images",
|
||||
CatalogueImageViewSet,
|
||||
|
||||
Reference in New Issue
Block a user