Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 6 Odoo series since 12.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.07 MB
Module directory on disk
Code analysis 0 migration notes 4 models 2 views 0 HTTP endpoints

Description

When a product is tracked by lot or serial number and is returned by a customer, it’s crucial to clearly indicate to the user which lot or serial number can be accepted. This way, we prevent user from receiving a product with a lot or serial number different from the original delivery.

This module enhances the return process by creating a separate return line for each product/lot and automatically pre-filling it with the lot from the original delivery. It relies on the Stock Restrict Lot module to enforce accurate tracking, ensuring that the reception order reflects the correct lot or serial number that should be received.

This module also integrates with [Stock Picking Return Restricted Qty] (https://github.com/OCA/stock-logistics-workflow/tree/18.0/stock_picking_return_restricted_qty) because the quantities are now split up per lot.

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 2

XML IDNameModelTypeStatus
res_config_settings_view_form res.config.settings form Inherits stock.res_config_settings_view_form
view_stock_return_picking_form stock.return.picking form Inherits stock.view_stock_return_picking_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 4

New fields (1)
  • stock_picking_return_lot_restrict Boolean
    string='Restrict lot that can be selected based on those used in the move'
Public methods (0)

No public methods.

New fields (1)
  • stock_picking_return_lot_restrict Boolean
    readonly=False related='company_id.stock_picking_return_lot_restrict'
Public methods (0)

No public methods.

New fields (1)
  • lots_visible Boolean
    compute='_compute_lots_visible'
Public methods (1)
  • action_create_returns_all(self)
    Force a reset to returnable quantities per lot

New fields (2)
  • lot_id Many2one → stock.lot
    domain='lot_id_domain' string='Lot/Serial Number' args: 'stock.lot'
  • lot_id_domain Binary
    compute='_compute_lot_id_domain'
Public methods (1)
  • get_returned_restricted_quantity(self, stock_move)
    @api.model
    Get the restricted quantity by lot (if any). Overwrite of this method from stock_picking_return_restricted_qty. This module calls this method with either zero or one record(s) in `self`, and does not use the actual value of `self`. For our purposes, we want to use the value of `lot_id` in self as an additional filter (and using an empty value for `lot_id` should work fine in case `self` is not set).

Loading…

Loading…

Loading…

Loading…

Loading…