diff --git a/shopinvader_api_address_shipping_note/schemas.py b/shopinvader_api_address_shipping_note/schemas.py index cd8cb021a5..2e08b6c635 100644 --- a/shopinvader_api_address_shipping_note/schemas.py +++ b/shopinvader_api_address_shipping_note/schemas.py @@ -2,13 +2,13 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo.addons.shopinvader_api_address.schemas import ( - ShippingAddressCreate, - ShippingAddressUpdate, + DeliveryAddressCreate, + DeliveryAddressUpdate, ) -from odoo.addons.shopinvader_schema_address.schemas import ShippingAddress +from odoo.addons.shopinvader_schema_address.schemas import DeliveryAddress -class ShippingAddressNote(ShippingAddress, extends=ShippingAddress): +class ShippingAddressNote(DeliveryAddress, extends=DeliveryAddress): """ Shipping Address """ @@ -23,7 +23,7 @@ def from_res_partner(cls, odoo_rec): return res -class ShippingAddressNoteCreate(ShippingAddressCreate, extends=ShippingAddressCreate): +class ShippingAddressNoteCreate(DeliveryAddressCreate, extends=DeliveryAddressCreate): """ Creation of Shipping Address """ @@ -38,7 +38,7 @@ def to_res_partner_vals(self) -> dict: return vals -class ShippingAddressNoteUpdate(ShippingAddressUpdate, extends=ShippingAddressUpdate): +class ShippingAddressNoteUpdate(DeliveryAddressUpdate, extends=DeliveryAddressUpdate): """ Update of Shipping Address """ diff --git a/shopinvader_api_address_shipping_note/tests/test_shopinvader_api_address_shipping_note.py b/shopinvader_api_address_shipping_note/tests/test_shopinvader_api_address_shipping_note.py index 8cb3e282af..760353fcd1 100644 --- a/shopinvader_api_address_shipping_note/tests/test_shopinvader_api_address_shipping_note.py +++ b/shopinvader_api_address_shipping_note/tests/test_shopinvader_api_address_shipping_note.py @@ -55,7 +55,7 @@ def test_get_shipping_address(self): with self._create_test_client(router=address_router) as test_client: response: Response = test_client.get( - "/addresses/shipping", + "/addresses/delivery", ) self.assertEqual( @@ -83,7 +83,7 @@ def test_get_shipping_address(self): with self._create_test_client(router=address_router) as test_client: response: Response = test_client.get( - "/addresses/shipping", + "/addresses/delivery", ) self.assertEqual( @@ -120,7 +120,7 @@ def test_create_shipping_address(self): with self._create_test_client(router=address_router) as test_client: response: Response = test_client.post( - "/addresses/shipping", content=json.dumps(data) + "/addresses/delivery", content=json.dumps(data) ) self.assertEqual(