Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Inventory

Entity: stock.warehouse.orderpoint

Compute Method: _compute_product_max_qty

View 17.0 View 19.0
Inputs Method Outputs
  • product_max_qty
  • product_min_qty
+ for orderpoint in self:
+             if orderpoint.product_max_qty < orderpoint.product_min_qty or not orderpoint.product_max_qty:
+                 orderpoint.product_max_qty = orderpoint.product_min_qty
  • product_max_qty

Back to entity