[FIX] stock: scrap quantity uom editable in done state
Since #104062, the uom field on a scrap order is still editable when it is in the done state. This behaviour is now fixed. Community PR: https://github.com/odoo/odoo/pull/115288 closes odoo/odoo#115399 X-original-commit: 5785d19c749fb1456bf1079d07e83e401850b330 Signed-off-by: Tiffany Chang <tic@odoo.com>
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
<div class="o_row">
|
||||
<field name="scrap_qty" attrs="{'readonly': ['|',('state', '=', 'done'),('tracking', '=', 'serial')]}"/>
|
||||
<field name="product_uom_category_id" invisible="1"/>
|
||||
<field name="product_uom_id" attrs="{'readonly': [('tracking', '=', 'serial')]}" groups="uom.group_uom" force_save="1"/>
|
||||
<field name="product_uom_id" attrs="{'readonly': ['|',('state', '=', 'done'),('tracking', '=', 'serial')]}" groups="uom.group_uom" force_save="1"/>
|
||||
</div>
|
||||
<field name="lot_id" context="{'default_product_id': product_id, 'default_company_id': company_id}" attrs="{'invisible': ['|',('product_id', '=', False),('tracking', '=', 'none')], 'required': [('tracking', '!=', 'none')]}" groups="stock.group_production_lot"/>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user