[MIG] stock_report_quantity_by_location: Migration to 15.0

This commit is contained in:
Jasmin Solanki
2022-07-13 10:41:44 +05:30
committed by Hugo
parent ae7fea8de9
commit 6edb9f48fa
3 changed files with 8 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
{
"name": "Stock Report Quantity By Location",
"summary": "Stock Report Quantity By Location",
"version": "14.0.1.0.0",
"version": "15.0.1.0.0",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-reporting",
"category": "Warehouse Management",

View File

@@ -1,10 +1,10 @@
# Copyright 2019-21 ForgeFlow, S.L.
# 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 TestStockReportQuantityByLocation(SavepointCase):
class TestStockReportQuantityByLocation(TransactionCase):
@classmethod
def setUpClass(cls):
super(TestStockReportQuantityByLocation, cls).setUpClass()

View File

@@ -10,6 +10,11 @@ class StockReportByLocationPrepare(models.TransientModel):
location_ids = fields.Many2many(
comodel_name="stock.location", string="Locations", required=True
)
availability = fields.Selection(
selection=[("on_hand", "On Hand"), ("unreserved", "Unreserved")],
default="on_hand",
help="Unreserved is the Stock On Hand minus the reservations",
)
with_quantity = fields.Boolean(
string="Quantity > 0",
default=True,