[FIX] mrp: prevent quantity/lot/SN changes from work orders 'manager view'
This revision ensures that users cannot modify the current quantity or enter lot numbers from the so-called manager view. This is because the 'tablet view' is not aware of the changes made in the manager view.
This commit is contained in:
@@ -140,13 +140,13 @@
|
||||
<page string="Current Production">
|
||||
<group>
|
||||
<group>
|
||||
<field name="qty_producing" string="Current Qty" attrs="{'readonly': ['|', ('product_tracking', '=', 'serial'), ('state', 'in', ('done', 'cancel'))]}"/>
|
||||
<field name="final_lot_id" context="{'default_product_id': product_id}" domain="['|', '&', ('product_id', '=', product_id), ('product_id.tracking', '!=', 'serial'), ('use_next_on_work_order_id', '=', id)]" attrs="{'invisible': [('product_tracking', '=', 'none')]}" groups="stock.group_production_lot"/>
|
||||
<field name="qty_producing" string="Current Qty" attrs="{'readonly': ['|', ('product_tracking', '=', 'serial'), ('state', 'in', ('done', 'cancel'))]}" readonly="1"/>
|
||||
<field name="final_lot_id" context="{'default_product_id': product_id}" domain="['|', '&', ('product_id', '=', product_id), ('product_id.tracking', '!=', 'serial'), ('use_next_on_work_order_id', '=', id)]" attrs="{'invisible': [('product_tracking', '=', 'none')]}" groups="stock.group_production_lot" readonly="1"/>
|
||||
<field name="product_tracking" invisible="1"/>
|
||||
</group>
|
||||
</group>
|
||||
<field name="move_raw_ids" invisible="1"/>
|
||||
<field name="active_move_line_ids" attrs="{'invisible': [('active_move_line_ids', '=', [])]}">
|
||||
<field name="active_move_line_ids" attrs="{'invisible': [('active_move_line_ids', '=', [])]}" readonly="1">
|
||||
<tree editable="bottom" create="0" delete="0">
|
||||
<field name="product_id"/>
|
||||
<field name="product_uom_qty" readonly="1" string="To Consume"/>
|
||||
|
||||
Reference in New Issue
Block a user