Skip to content
Snippets Groups Projects
Commit 42f51dce authored by Tiffany Chang (tic)'s avatar Tiffany Chang (tic)
Browse files

[FIX] stock: allow scrap uom editing in list view

Due to the domain dependancy of `product_uom_id` on
`product_uom_category_id`, a JS error was occurring since the field
wasn't available in the view.

Steps to reproduce:
- create a scrap
- select scrap in list view
- try to edit the UoM

Client Error occurs instead of allowing user to edit the UoM.

Fixes: odoo/odoo#92800
Part-of: odoo/odoo#114991
parent 1d1ac976
Branches
Tags
No related merge requests found
......@@ -124,6 +124,7 @@
<field name="date_done"/>
<field name="product_id" readonly="1"/>
<field name="scrap_qty"/>
<field name="product_uom_category_id" invisible="1"/>
<field name="product_uom_id" groups="uom.group_uom"/>
<field name="location_id" options="{'no_create': True}" groups="stock.group_stock_multi_locations"/>
<field name="scrap_location_id" options="{'no_create': True}" groups="stock.group_stock_multi_locations"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment