TIP: You can type at any time to perform a new search.

Security findings

Repository
OCA/stock-logistics-workflow · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
Folder size
0.05 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/stock-logistics-workflow
Last tracking update
2026-10-04 00:16:45
Authors
Camptocamp, ACSONE SA/NV, Odoo Community Association (OCA)
Maintainers
Camptocamp, ACSONE SA/NV, Odoo Community Association (OCA)
Committers
Víctor Martínez, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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](https://github.com/OCA/stock-logistics-workflow/tree/18.0/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.

Code Analysis info_outline

Views touched (1)
XML IDNameModelTypeStatus
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 (2)

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 (1)
  • lot_id Many2one → stock.lot
    domain="[('product_id', '=', product_id)]" string='Lot/Serial Number' args: 'stock.lot'
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…