mirror of
https://github.com/OCA/stock-logistics-reporting.git
synced 2025-02-16 17:13:21 +02:00
[MIG] stock_report_quantity_by_location: Migration to 15.0
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user