Skip to content

Conversation

@John75SunCity
Copy link
Owner

M

├── __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
StockProductionLot, ShreddingService, PickupRequest, Etc.
InventoryPortal
@John75SunCity John75SunCity requested a review from Copilot June 19, 2025 10:11
Copy link
Contributor

Copilot AI left a 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>
@John75SunCity John75SunCity merged commit a2e4ad9 into feature/odoo-module-setup Jun 19, 2025
4 checks passed
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