-
Notifications
You must be signed in to change notification settings - Fork 0
KG #4
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
KG #4
Conversation
├── __init__.py ├── __manifest__.py ├── controllers/ │ ├── __init__.py │ └── portal.py ├── models/ │ ├── __init__.py │ ├── stock_production_lot.py │ ├── shredding_service.py │ └── pickup_request.py
Moves manifest and view/data files out of the main Python file to improve modularity and maintainability. Refactors models and controllers for clarity and adds inline documentation. Updates routes to support both GET and POST for pickup requests, enhancing usability. Prepares code for better separation of concerns and easier future development.
records management custom development-johncope75
test 1Test
StockProductionLot, ShreddingService, PickupRequest, Etc.
InventoryPortal
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 introduces new records management functionality including security groups, models for stock production lots, stock picking, shredding services, and pickup requests, along with corresponding controllers, scheduled actions, and supporting configuration files. Key changes include:
- New XML records for security groups and products.
- New/updated models and controllers for handling stock, shredding, and pickup requests.
- Added scheduled actions, manifest, and development environment configuration files.
Reviewed Changes
Copilot reviewed 18 out of 26 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| records_management/security/groups.xml | Added new security groups for warehouse and service roles. |
| records_management/models/stock_production_lot.py | Extended stock production lot model with customer field and developer notes. |
| records_management/models/stock_picking.py | Updated button validation to create a sale order for customer-related items. |
| records_management/models/shredding_service.py | Introduced a new shredding service model with price computation logic. |
| records_management/models/scrm_records_management.py | Added models for stock production lot, shredding service, and pickup request (duplicate definition) with an inconsistency in the customer relation. |
| records_management/models/pickup_request.py | New model for pickup requests (defined consistently with res.partner). |
| records_management/data/scheduled_actions.xml | New scheduled action for computing monthly storage fees. |
| records_management/data/products.xml | Defined new product records for boxes, files, shredding bins, retrieval, and storage fees. |
| records_management/controllers/portal.py | Added controllers for inventory and pickup request endpoints. |
| records_management/controllers/init.py | Initialized the controllers module. |
| records_management/manifest.py | Module manifest file which incorrectly includes additional Python code. |
| docker-compose.yml, .vscode/*, .devcontainer/devcontainer.json | Added development and container configuration files. |
| manifest.py | Global manifest file for the project. |
| HTTP Controller | Additional HTTP controller with inventory and pickup request routes. |
| records_management/init.py | Module initializer for models. |
Comments suppressed due to low confidence (1)
records_management/models/scrm_records_management.py:65
- The PickupRequest model here uses 'res.rtner' for the customer relation, which is inconsistent with other models that use 'res.partner'. Consider updating it to 'res.partner' to avoid potential reference conflicts, and remove duplicate model definitions.
customer_id = fields.Many2one('res.rtner', string='Customer', required=True)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
M