Skip to content

Commit b0e245b

Browse files
committed
Merge PR #82 into 18.0
Signed-off-by JordiBForgeFlow
2 parents f20d970 + 898d917 commit b0e245b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

stock_request_bom/views/stock_request_order_views.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@
88
<field name="inherit_id" ref="stock_request.stock_request_order_form" />
99
<field name="arch" type="xml">
1010
<xpath expr="//field[@name='picking_policy']" position="after">
11-
<field name="product_bom_id" />
12-
<field name="quantity_bom" invisible="not product_bom_id" />
11+
<field name="product_bom_id" readonly="state != 'draft'" />
12+
<field
13+
name="quantity_bom"
14+
invisible="not product_bom_id"
15+
readonly="state != 'draft'"
16+
/>
1317
</xpath>
1418
</field>
1519
</record>

0 commit comments

Comments
 (0)