diff --git a/addons/stock/models/stock_move.py b/addons/stock/models/stock_move.py index 46d914694ee..430c3cb1669 100644 --- a/addons/stock/models/stock_move.py +++ b/addons/stock/models/stock_move.py @@ -80,6 +80,8 @@ class StockMove(models.Model): auto_join=True, index=True, required=True, check_company=True, help="Location where the system will stock the finished products.") + location_usage = fields.Selection(string="Source Location Type", related='location_id.usage') + location_dest_usage = fields.Selection(string="Destination Location Type", related='location_dest_id.usage') partner_id = fields.Many2one( 'res.partner', 'Destination Address ', states={'done': [('readonly', True)]}, diff --git a/addons/stock/views/stock_move_views.xml b/addons/stock/views/stock_move_views.xml index 01d9da3b1fd..4a3d171c1c7 100644 --- a/addons/stock/views/stock_move_views.xml +++ b/addons/stock/views/stock_move_views.xml @@ -30,16 +30,22 @@ stock.move - - + + + + - - + + - - + + - + - + @@ -395,7 +401,7 @@ ir.actions.act_window - {'search_default_done': 1, 'search_default_groupby_location_id': 1} + {'search_default_done': 1}

No stock move found