diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2020-11-30 14:35:56 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-12-07 06:33:50 +0000 |
| commit | 7e9d052beabe15d932e5d403f8ca2f4837c7d24f (patch) | |
| tree | bafe2314e8ce216cd3b2c59465c8ab1b5906989f /addons/stock_landed_costs | |
| parent | 383b12977062cacc6ff0f553d7012029268be1ec (diff) | |
[FIX] stock_account, stock_landed_costs: do not create SVL for consumable
The creation of a Stock Valuation Layer is useless in case of a
Consumable product. At best it is useless, at worst it causes
inconsistencies when the user switch from a Consumable to a Storable
type.
closes odoo/odoo#62679
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/stock_landed_costs')
| -rw-r--r-- | addons/stock_landed_costs/tests/test_stock_landed_costs.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/stock_landed_costs/tests/test_stock_landed_costs.py b/addons/stock_landed_costs/tests/test_stock_landed_costs.py index 89847cedc56..9e86cdf6c0e 100644 --- a/addons/stock_landed_costs/tests/test_stock_landed_costs.py +++ b/addons/stock_landed_costs/tests/test_stock_landed_costs.py @@ -20,6 +20,7 @@ class TestStockLandedCosts(TestStockLandedCostsCommon): 'weight': 10, 'volume': 1, 'categ_id': self.stock_account_product_categ.id, + 'type': 'product', }) product_landed_cost_2 = self.env['product.product'].create({ @@ -27,6 +28,7 @@ class TestStockLandedCosts(TestStockLandedCostsCommon): 'weight': 20, 'volume': 1.5, 'categ_id': self.stock_account_product_categ.id, + 'type': 'product', }) self.assertEqual(product_landed_cost_1.value_svl, 0) |
