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

Module: WMS Accounting

Entity: stock.move

Compute Method: _compute_remaining_qty

View 20.0
Inputs Method Outputs
  • product_id
+ for company, moves in self.grouped('company_id').items():
+             products = moves.product_id
+             remaining_by_product = products.with_company(company)._get_remaining_moves()
+ 
+             for move in moves:
+                 move.remaining_qty = remaining_by_product.get(move.product_id, {}).get(move, 0)
  • remaining_qty

Back to entity