diff --git a/stock_lot_filter_available/__manifest__.py b/stock_lot_filter_available/__manifest__.py index 59c272145..62b3c49bb 100644 --- a/stock_lot_filter_available/__manifest__.py +++ b/stock_lot_filter_available/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Stock Lot Filter Available", "summary": "Allow to filter lots by available on stock", - "version": "13.0.2.0.0", + "version": "15.0.1.0.0", "category": "Warehouse", "author": "Tecnativa, Odoo Community Association (OCA)", "license": "AGPL-3", diff --git a/stock_lot_filter_available/readme/USAGE.rst b/stock_lot_filter_available/readme/USAGE.rst index 97219b428..2d8a94061 100644 --- a/stock_lot_filter_available/readme/USAGE.rst +++ b/stock_lot_filter_available/readme/USAGE.rst @@ -1,6 +1,6 @@ To use this module: - #. Go to Inventory > Master Data > Lots/Serial Numbers. + #. Go to Inventory > Products > Lots/Serial Numbers. #. Press Filters > On hand. Now you will see just the lots with stock. diff --git a/stock_lot_filter_available/tests/test_stock_lot_filter_available.py b/stock_lot_filter_available/tests/test_stock_lot_filter_available.py index f4fdae2e0..ad160bb80 100644 --- a/stock_lot_filter_available/tests/test_stock_lot_filter_available.py +++ b/stock_lot_filter_available/tests/test_stock_lot_filter_available.py @@ -1,10 +1,10 @@ # Copyright 2021 Tecnativa - Carlos Roca # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo.tests.common import SavepointCase +from odoo.tests.common import TransactionCase -class TestStockLotFilterAvailable(SavepointCase): +class TestStockLotFilterAvailable(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() @@ -12,7 +12,7 @@ class TestStockLotFilterAvailable(SavepointCase): cls.company = cls.env.ref("base.main_company") cls.loc = cls.env.ref("stock.stock_location_stock") cls.product = cls.env["product.product"].create( - {"name": "Test product", "type": "product", "tracking": "lot"} + {"name": "Test product", "detailed_type": "product", "tracking": "lot"} ) cls.lot = cls.StockProductionLot.create( {