Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0] [REF] shopinvader_api_cart, shopinvader_api_address: Cart and Address hooks #1574

Open
wants to merge 2 commits into
base: 16.0
Choose a base branch
from

Conversation

paradoxxxzero
Copy link
Contributor

@simahawk, @lmignon Here's a proposal to address #1534 and #1536 in a cleaner way.

I don't think we should promote the use of envs in schema methods, IMO the schema methods should work on the schema data only and the router helpers should work as a joint layer between schemas and models.

This provides the requested hooks in helper classes in the form of the traditional inheritable prepare methods.

@paradoxxxzero paradoxxxzero changed the title 16.0 ref cart address hooks [16.0] [REF] Cart and Address hooks Dec 9, 2024
@paradoxxxzero paradoxxxzero changed the title [16.0] [REF] Cart and Address hooks [16.0] [REF] shopinvader_api_cart, shopinvader_api_address: Cart and Address hooks Dec 9, 2024
@paradoxxxzero paradoxxxzero marked this pull request as draft December 9, 2024 10:50
…elper instead of passing the odoo record to the schema method
@paradoxxxzero paradoxxxzero force-pushed the 16.0-ref-cart-address-hooks branch from e74a211 to 3088f4f Compare December 9, 2024 11:09
@paradoxxxzero paradoxxxzero marked this pull request as ready for review December 9, 2024 11:17
shopinvader_api_address/routers/address_service.py Outdated Show resolved Hide resolved
shopinvader_api_address/routers/address_service.py Outdated Show resolved Hide resolved
shopinvader_api_address/routers/address_service.py Outdated Show resolved Hide resolved
shopinvader_api_address/routers/address_service.py Outdated Show resolved Hide resolved
shopinvader_api_address/routers/address_service.py Outdated Show resolved Hide resolved
shopinvader_api_address/routers/address_service.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants