From 50a34b108bdf9748a61181daf821ecaf0db978a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Wed, 5 Jun 2024 10:27:27 +0200 Subject: [PATCH] [IMP] demo v2: add settings and customer routers --- shopinvader_v2_app_demo/README.rst | 2 +- shopinvader_v2_app_demo/__manifest__.py | 2 ++ shopinvader_v2_app_demo/models/fastapi_endpoint.py | 4 ++++ shopinvader_v2_app_demo/static/description/index.html | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/shopinvader_v2_app_demo/README.rst b/shopinvader_v2_app_demo/README.rst index 62bd37d61f..f710351972 100644 --- a/shopinvader_v2_app_demo/README.rst +++ b/shopinvader_v2_app_demo/README.rst @@ -7,7 +7,7 @@ Shopinvader App Demo !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:6743c81d6b419d7ef3d62548a85e54538977ea5f41bd09ef5b294ff6f2a422c3 + !! source digest: sha256:f15146369874d2a0bec222c21249f569e94cb3a00d743b28f21bce75f5d5cb13 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/shopinvader_v2_app_demo/__manifest__.py b/shopinvader_v2_app_demo/__manifest__.py index ee9ac7af33..391c7dabc9 100644 --- a/shopinvader_v2_app_demo/__manifest__.py +++ b/shopinvader_v2_app_demo/__manifest__.py @@ -19,12 +19,14 @@ "shopinvader_anonymous_partner", "shopinvader_api_address", "shopinvader_api_cart", + "shopinvader_api_customer", "shopinvader_api_payment_cart", "shopinvader_api_payment_provider_custom", "shopinvader_api_payment_provider_sips", "shopinvader_api_payment_provider_stripe", "shopinvader_api_sale_loyalty", "shopinvader_api_sale", + "shopinvader_api_settings", "shopinvader_api_signin_jwt", "shopinvader_api_wishlist", "shopinvader_fastapi_auth_jwt", diff --git a/shopinvader_v2_app_demo/models/fastapi_endpoint.py b/shopinvader_v2_app_demo/models/fastapi_endpoint.py index 69e39a6248..3b945c17f9 100644 --- a/shopinvader_v2_app_demo/models/fastapi_endpoint.py +++ b/shopinvader_v2_app_demo/models/fastapi_endpoint.py @@ -16,9 +16,11 @@ ) from odoo.addons.shopinvader_api_address.routers.address_service import address_router from odoo.addons.shopinvader_api_cart.routers import cart_router +from odoo.addons.shopinvader_api_customer.routers import customer_router from odoo.addons.shopinvader_api_payment.routers import payment_router from odoo.addons.shopinvader_api_sale.routers import sale_router from odoo.addons.shopinvader_api_sale_loyalty.routers import loyalty_router +from odoo.addons.shopinvader_api_settings.routers import settings_router from odoo.addons.shopinvader_api_signin_jwt.routers import signin_router from odoo.addons.shopinvader_fastapi_auth_jwt.dependencies import ( auth_jwt_authenticated_or_anonymous_partner, @@ -48,9 +50,11 @@ def _get_shopinvader_demo_fastapi_routers(self) -> List[APIRouter]: loyalty_router.tags.append("loyalty") return [ address_router, + customer_router, loyalty_router, payment_router, sale_router, + settings_router, signin_router, ] diff --git a/shopinvader_v2_app_demo/static/description/index.html b/shopinvader_v2_app_demo/static/description/index.html index 124b5b621c..6f0e667037 100644 --- a/shopinvader_v2_app_demo/static/description/index.html +++ b/shopinvader_v2_app_demo/static/description/index.html @@ -367,7 +367,7 @@

Shopinvader App Demo

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:6743c81d6b419d7ef3d62548a85e54538977ea5f41bd09ef5b294ff6f2a422c3 +!! source digest: sha256:f15146369874d2a0bec222c21249f569e94cb3a00d743b28f21bce75f5d5cb13 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 shopinvader/odoo-shopinvader

This module allows you to create a demo shopinvader application.