diff --git a/stock_report_quantity_by_location/__manifest__.py b/stock_report_quantity_by_location/__manifest__.py index 81d9362..28f14f0 100644 --- a/stock_report_quantity_by_location/__manifest__.py +++ b/stock_report_quantity_by_location/__manifest__.py @@ -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", diff --git a/stock_report_quantity_by_location/tests/test_stock_report_quantity_by_location.py b/stock_report_quantity_by_location/tests/test_stock_report_quantity_by_location.py index a2e3f54..34b8d9f 100644 --- a/stock_report_quantity_by_location/tests/test_stock_report_quantity_by_location.py +++ b/stock_report_quantity_by_location/tests/test_stock_report_quantity_by_location.py @@ -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() diff --git a/stock_report_quantity_by_location/wizards/stock_report_quantity_by_location.py b/stock_report_quantity_by_location/wizards/stock_report_quantity_by_location.py index df64085..2c38a36 100644 --- a/stock_report_quantity_by_location/wizards/stock_report_quantity_by_location.py +++ b/stock_report_quantity_by_location/wizards/stock_report_quantity_by_location.py @@ -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,