diff --git a/modules/stock/CHANGELOG b/modules/stock/CHANGELOG index 78bde4eb54..8432b51a08 100644 --- a/modules/stock/CHANGELOG +++ b/modules/stock/CHANGELOG @@ -1,3 +1,4 @@ +* Display quantity when searching product for move * Add packed state to internal shipment Version 7.4.0 - 2024-11-04 diff --git a/modules/stock/move.py b/modules/stock/move.py index 62d2217093..6c77539939 100644 --- a/modules/stock/move.py +++ b/modules/stock/move.py @@ -182,6 +182,14 @@ class Move(Workflow, ModelSQL, ModelView): context={ 'company': Eval('company', -1), }, + search_context={ + 'locations': If(Eval('from_location'), + [Eval('from_location', -1)], []), + 'stock_date_end': ( + If(Eval('effective_date'), + Eval('effective_date', None), + Eval('planned_date', None))), + }, depends={'company'}, help="The product that the move is associated with.") product_uom_category = fields.Function( diff --git a/modules/stock/product.xml b/modules/stock/product.xml index 44433ceaa1..e26d532681 100644 --- a/modules/stock/product.xml +++ b/modules/stock/product.xml @@ -3,6 +3,13 @@ this repository contains the full copyright notices and license terms. --> + + product.product + tree + + product_list_stock_move + + Recompute Cost Price product.recompute_cost_price diff --git a/modules/stock/view/move_form.xml b/modules/stock/view/move_form.xml index 3d3b49c0de..d3196f8ca1 100644 --- a/modules/stock/view/move_form.xml +++ b/modules/stock/view/move_form.xml @@ -9,7 +9,7 @@ this repository contains the full copyright notices and license terms. -->