[MIG] stock_lot_filter_available: Migration to 15.0

This commit is contained in:
CarlosRoca13
2022-10-27 12:51:09 +02:00
parent 476114bac3
commit aab1fb9e9e
3 changed files with 5 additions and 5 deletions

View File

@@ -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",

View File

@@ -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.

View File

@@ -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(
{