Repository
OCA/stock-logistics-reservation · module folder · Try on Runboat
Module version
1.0.0
Category
Warehouse
Folder size
1.61 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/stock-logistics-reservation
Last tracking update
2026-08-07 08:43:06
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
Weblate, OCA-git-bot, oca-ci, rjaraspearhead
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
Allows to create stock reservations on products.

Each reservation can have a validity date, once passed, the reservation
is automatically lifted.

The reserved products are substracted from the virtual stock. It means
that if you reserved a quantity of products which bring the virtual
stock below the minimum, the orderpoint will be triggered and new
purchase orders will be generated. It also implies that the max may be
exceeded if the reservations are canceled.

If ownership of stock is active in the stock settings, you can specify
the owner on the reservation.

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
product_product_form_view_reservation_button product.product.reservation.button product.product form Inherits product.product_normal_form_view
product_template_form_view_reservation_button product.template.reservation.button product.template form Inherits product.product_template_only_form_view
view_stock_reservation_form stock.reservation.form stock.reservation form New
view_stock_reservation_search stock.reservation.search stock.reservation search New
view_stock_reservation_tree stock.reservation.tree stock.reservation list New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (1)
  • reservation_count Float
    compute='_compute_reservation_count' string='# Sales'
Public methods (1)
  • action_view_reservations(self)

New fields (1)
  • reservation_count Float
    compute='_compute_reservation_count' string='# Sales'
Public methods (1)
  • action_view_reservations(self)

New fields (3)
  • date_validity Date
    args: 'Validity Date'
  • move_id Many2one → stock.move
    index=True ondelete='cascade' readonly=True required=True args: 'stock.move', 'Reservation Move'
  • note Text
    string='Notes'
Public methods (9)
  • assign_waiting_confirmed_reserve_moves(self)
    @api.model
  • default_get(self, fields_list)
    @api.model
    Fix default values - Ensure default value of computed field `product_qty` is not set as it would raise an error - Compute default `location_id` based on default `picking_type_id`. Note: `default_picking_type_id` may be present in context, so code that looks for default `location_id` is implemented here, because it relies on already calculated default `picking_type_id`.
  • get_location_from_ref(self, ref)
    @api.model
    Get a location from a xmlid if allowed :param ref: tuple (module, xmlid)
  • open_move(self)
  • release_reserve(self)
    Release moves from reservation
  • release_validity_exceeded(self, ids=None)
    @api.model
    Release all the reservation having an exceeded validity date
  • reserve(self)
    Confirm reservations The reservation is done using the default UOM of the product. A date until which the product is reserved can be specified.
  • unlink(self)
    Release the reservation before the unlink
  • write(self, vals)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
48 days ago
Last activity
48 days ago
Repository
OCA/stock-logistics-reservation
Pull request
[19.0][MIG] stock_reserve: Migration to 19.0 (#59)