mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[MIG] stock_lot_filter_available: Migration to 15.0
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user