Skip to content

Commit 8457cd5

Browse files
[IMP] stock_request: removes allocations from stock.view_stock_move_operations and improves in stock.view_move_form
1 parent f20d970 commit 8457cd5

File tree

1 file changed

+22
-17
lines changed

1 file changed

+22
-17
lines changed
Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,32 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<odoo>
3-
<record id="view_stock_move_operations" model="ir.ui.view">
4-
<field name="name">stock.move.operations.form</field>
5-
<field name="model">stock.move</field>
6-
<field name="inherit_id" ref="stock.view_stock_move_operations" />
7-
<field name="arch" type="xml">
8-
<field name="move_line_ids" position="after">
9-
<newline />
10-
<field name="allocation_ids" />
11-
</field>
12-
</field>
13-
</record>
143
<record id="view_move_form" model="ir.ui.view">
154
<field name="name">stock.move.form</field>
165
<field name="model">stock.move</field>
176
<field name="inherit_id" ref="stock.view_move_form" />
187
<field name="arch" type="xml">
19-
<group name="linked_group" position="after">
20-
<newline />
21-
<group name="allocations" string="Stock Request Allocations">
22-
<field name="allocation_ids" />
23-
</group>
24-
</group>
8+
<field name="move_dest_ids" position="after">
9+
<field
10+
name="allocation_ids"
11+
string="Stock Request Allocations"
12+
readonly="1"
13+
>
14+
<list>
15+
<field name="stock_request_id" />
16+
<field name="stock_move_id" />
17+
<field name="product_id" />
18+
<field name="requested_product_uom_qty" />
19+
<field
20+
name="product_uom_id"
21+
options="{'no_open': True, 'no_create': True}"
22+
groups="uom.group_uom"
23+
/>
24+
<field name="requested_product_qty" />
25+
<field name="allocated_product_qty" />
26+
<field name="open_product_qty" />
27+
</list>
28+
</field>
29+
</field>
2530
</field>
2631
</record>
2732
</odoo>

0 commit comments

Comments
 (0)