summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2020-12-15 12:10:36 +0000
committerNicolas Martinelli <nim@odoo.com>2020-12-15 13:22:21 +0000
commit28e1f9f5c6f5064c4c861ebfa96f34c0d3ba26cb (patch)
tree7c7659ddce2d7addf4d38c14abc216a1bc99e4e0
parentdb7f4437a644b93a5227f663fa19dda00817c13c (diff)
[FIX] stock_account: SVL for consumable
Stock Valuation Layers are used for the MRP Cost Analysis feature. Therefore, they are useful for consumable. opw-2412668 closes odoo/odoo#63393 X-original-commit: c68e572f7c6f5109f1bfc40f9a44fc051f315112 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
-rw-r--r--addons/stock_account/models/stock_move.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock_account/models/stock_move.py b/addons/stock_account/models/stock_move.py
index 033aa1149ac..2c90c4af584 100644
--- a/addons/stock_account/models/stock_move.py
+++ b/addons/stock_account/models/stock_move.py
@@ -234,7 +234,7 @@ class StockMove(models.Model):
# Init a dict that will group the moves by valuation type, according to `move._is_valued_type`.
valued_moves = {valued_type: self.env['stock.move'] for valued_type in self._get_valued_types()}
for move in self:
- if float_is_zero(move.quantity_done, precision_rounding=move.product_uom.rounding) or move.product_id.type == 'consu':
+ if float_is_zero(move.quantity_done, precision_rounding=move.product_uom.rounding):
continue
for valued_type in self._get_valued_types():
if getattr(move, '_is_%s' % valued_type)():