Display quantity when searching product for stock move

Closes #13780
This commit is contained in:
Cédric Krier
2024-12-26 17:29:21 +01:00
parent 82cf417ae1
commit 530471d9a8
5 changed files with 26 additions and 1 deletions
+1
View File
@@ -1,3 +1,4 @@
* Display quantity when searching product for move
* Add packed state to internal shipment
Version 7.4.0 - 2024-11-04
+8
View File
@@ -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(
+7
View File
@@ -3,6 +3,13 @@
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="product_view_list_stock_move">
<field name="model">product.product</field>
<field name="type">tree</field>
<field name="priority" eval="20"/>
<field name="name">product_list_stock_move</field>
</record>
<record model="ir.action.wizard" id="wizard_recompute_cost_price">
<field name="name">Recompute Cost Price</field>
<field name="wiz_name">product.recompute_cost_price</field>
+1 -1
View File
@@ -9,7 +9,7 @@ this repository contains the full copyright notices and license terms. -->
<label name="to_location"/>
<field name="to_location"/>
<label name="product"/>
<field name="product"/>
<field name="product" view_ids="stock.product_view_list_stock_move"/>
<notebook colspan="4">
<page string="Move" id="move">
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tree>
<field name="code" optional="0"/>
<field name="name" expand="1"/>
<field name="quantity" symbol="default_uom"/>
<field name="forecast_quantity" symbol="default_uom" optional="1"/>
</tree>