Skip to content
Health
67/100
fair
  • Security25/25
    No findings
  • Activity12/25
    Last human commit 13 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 10 Odoo series since 7.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
1.61 MB
Module directory on disk
Code analysis 0 migration notes 3 models 5 views 0 HTTP endpoints

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.

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 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…

Loading…