diff --git a/stock_move_location/__manifest__.py b/stock_move_location/__manifest__.py index 43d006fe6..b4e70c6a4 100644 --- a/stock_move_location/__manifest__.py +++ b/stock_move_location/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Move Stock Location", - "version": "14.0.1.0.0", + "version": "15.0.1.0.0", "author": "Julius Network Solutions, Odoo Community Association (OCA)", "summary": "This module allows to move all stock " "in a stock location to an other one.", diff --git a/stock_move_location/models/stock_move.py b/stock_move_location/models/stock_move.py index 437c679a5..d6f517fed 100644 --- a/stock_move_location/models/stock_move.py +++ b/stock_move_location/models/stock_move.py @@ -14,6 +14,7 @@ class StockMove(models.Model): @api.depends("location_move") def _compute_show_details_visible(self): - super()._compute_show_details_visible() + res = super()._compute_show_details_visible() for move in self.filtered(lambda x: x.location_move): move.show_details_visible = True + return res diff --git a/stock_move_location/readme/USAGE.rst b/stock_move_location/readme/USAGE.rst index 53763e43d..c565d0a04 100644 --- a/stock_move_location/readme/USAGE.rst +++ b/stock_move_location/readme/USAGE.rst @@ -1,4 +1,4 @@ -* A new menu item Stock > Move from location... opens a wizard +* A new menu item Operations > Move from location... opens a wizard where 2 locations can be specified. * Select origin and destination locations and press "IMMEDIATE TRANSFER" or "PLANNED TRANSFER" * Press `ADD ALL` button to add all products available @@ -11,7 +11,7 @@ If you want to transfer a full quant: -* Go to `Inventory > Master Data > Products` and click "On hand" smart button +* Go to `Inventory > Products > Products` and click "On hand" smart button or `Inventory > Reporting > Inventory`, the quants view will be opened. diff --git a/stock_move_location/tests/test_common.py b/stock_move_location/tests/test_common.py index 8877f2537..a6fda44d3 100644 --- a/stock_move_location/tests/test_common.py +++ b/stock_move_location/tests/test_common.py @@ -5,7 +5,7 @@ from odoo.tests import common -class TestsCommon(common.SavepointCase): +class TestsCommon(common.TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() diff --git a/stock_move_location/tests/test_move_location.py b/stock_move_location/tests/test_move_location.py index 357cce30d..0d33824fd 100644 --- a/stock_move_location/tests/test_move_location.py +++ b/stock_move_location/tests/test_move_location.py @@ -68,7 +68,7 @@ class TestMoveLocation(TestsCommon): """Test planned transfer.""" wizard = self._create_wizard(self.internal_loc_1, self.internal_loc_2) wizard.onchange_origin_location() - wizard = wizard.with_context({"planned": True}) + wizard = wizard.with_context(planned=True) wizard.action_move_location() picking = wizard.picking_id self.assertEqual(picking.state, "assigned") diff --git a/stock_move_location/wizard/stock_move_location.py b/stock_move_location/wizard/stock_move_location.py index 260941acc..e58b8cd29 100644 --- a/stock_move_location/wizard/stock_move_location.py +++ b/stock_move_location/wizard/stock_move_location.py @@ -57,8 +57,8 @@ class StockMoveLocationWizard(models.TransientModel): picking_id = fields.Many2one( string="Connected Picking", comodel_name="stock.picking" ) - edit_locations = fields.Boolean(string="Edit Locations", default=True) - apply_putaway_strategy = fields.Boolean(string="Apply putaway strategy") + edit_locations = fields.Boolean(default=True) + apply_putaway_strategy = fields.Boolean() @api.depends("edit_locations") def _compute_readonly_locations(self): diff --git a/stock_move_location/wizard/stock_move_location.xml b/stock_move_location/wizard/stock_move_location.xml index 4c022a469..d0306dd9a 100644 --- a/stock_move_location/wizard/stock_move_location.xml +++ b/stock_move_location/wizard/stock_move_location.xml @@ -45,7 +45,6 @@ mode="tree,kanban" >