Skip to content
Health
55/100
fair
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 8 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 16.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.09 MB
Module directory on disk
Code analysis 2 migration notes 3 models 3 views 0 HTTP endpoints

Description

This addon allows to automatically remove stock quants with a past removal date, regardless of whether they are reserved or not.

On each warehouse, you can enable the automatic removal of lots with a past removal date.

Every day, for each warehouse where the automatic removal is enabled, a cron job will launch the process to remove past removal date quants.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 3

XML IDNameModelTypeStatus
stock_lot_removal_wizard_form_view stock.lot.removal.wizard form New
stock_picking_type_form_view stock.picking.type form Inherits stock.view_picking_type_form
stock_warehouse_form_view stock.warehouse form Inherits stock.view_warehouse

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 3

New fields (3)
  • description Html
    compute='_compute_description' help='This wizard will generate removal moves for the quants of the lots to remove from the selected warehouse to the designated destination location'
  • removal_date Date
    default=fields.Date.context_today help='Lots with removal date before this date will be moved.' required=True string='Expiration Date'
  • warehouse_id Many2one → stock.warehouse
    default=<expr> required=True string='Warehouse' args: 'stock.warehouse'
Public methods (3)
  • action_run(self)
    Main entry point to find expired lots and create a transfer picking. This method will: 1. Find expired quants based on the removal date. 2. Unreserve moves that are linked to these quants. 3. Create a transfer picking to move these quants to the destination location. 4. Reassign the moves that were unreserved. return: The created picking record.
  • button_action_run(self)
    Run the wizard and return the action to view the created picking.
  • get_transfer_picking_vals(self, quants, moves_unreserved)
    Get the values to create a transfer picking for a quant.

New fields (1)
  • disable_unassign_lots_to_remove Boolean
    help='If checked, the unassignment of lots to remove will be disabled for this picking type. This is useful for picking types that should not allow unassigning lots, such as those used for expired lot removal.' string='Disable Unassign Lots to Remove'
Public methods (0)

No public methods.

New fields (3)
  • lot_remove_enabled Boolean
    help='If checked, a move will be planned reserving the expired lot.' string='Enable Expired Lot Removal'
  • lot_remove_orig_location_ids Many2many → stock.location
    comodel_name='stock.location' compute='_compute_lot_remove_orig_location_ids' help='Locations from which expired lots will be moved.' readonly=False store=True string='Expired Lot Origin Locations'
  • lot_remove_picking_type_id Many2one → stock.picking.type
    comodel_name='stock.picking.type' help='Picking type used for moving expired lots.' string='Expired Lot Move Picking Type'
Public methods (0)

No public methods.