-
-
Notifications
You must be signed in to change notification settings - Fork 1
Merge dev into main #337
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
Merge dev into main #337
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors stock management functionality by extracting stock-related code from models into a dedicated utility class, improves email templates with better table structure and formatting, and fixes typos throughout the codebase.
- Extracts stock management logic from Order and Product models into a new StockUtils utility class
- Updates email templates with improved table layout and fixed CSS styling for better presentation
- Fixes spelling errors in variable names and documentation
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
kmuhelper/modules/main/utils.py | Adds new StockUtils class with refactored stock management functionality |
kmuhelper/modules/main/models.py | Removes deprecated stock management methods from Order and Product models |
kmuhelper/modules/main/admin.py | Updates admin to use new StockUtils class and adds stock warning email action |
kmuhelper/modules/integrations/woocommerce/api/orders.py | Updates order creation to use new StockUtils for stock warnings |
kmuhelper/templates/kmuhelper/emails/order_stock_warning.html | Improves table structure and adds trigger information display |
kmuhelper/templates/kmuhelper/emails/base.html | Simplifies CSS and fixes postcontent typo |
kmuhelper/modules/emails/models.py | Fixes postcontent variable name typo |
docs/manual/emails.md | Updates documentation to reflect fixed variable name |
Co-authored-by: Copilot <[email protected]>
No description provided.