[IMP] mrp: improve display of some views
* Manufacturing Order: set Update button invisible when creating a MO, and also when MO is canceled. When creating a MO user should not be able to update; * Limitate production messages to routing group as those are linked to work orders, used when doing routing
This commit is contained in:
committed by
Thibault Delavallée
parent
8b7aa82265
commit
359e8a008b
@@ -118,5 +118,6 @@
|
||||
<menuitem id="mrp_message_menu"
|
||||
parent="menu_mrp_manufacturing"
|
||||
action="mrp_message_action_main"
|
||||
groups="group_mrp_routings"
|
||||
sequence="26"/>
|
||||
</odoo>
|
||||
@@ -80,6 +80,7 @@
|
||||
<group>
|
||||
<field name="has_moves" invisible="1"/>
|
||||
<field name="check_to_done" invisible="1"/>
|
||||
<field name="id" invisible="1"/>
|
||||
<field name="product_id" attrs="{'readonly': [('has_moves', '=', True)]}" domain="[('bom_ids', '!=', False)]"/>
|
||||
<field name="product_tmpl_id" invisible="1"/>
|
||||
<label for="product_qty"/>
|
||||
@@ -88,7 +89,7 @@
|
||||
<field name="product_uom_id" options="{'no_open':True,'no_create':True}" groups="product.group_uom" attrs="{'readonly': [('has_moves', '=', True)]}"/>
|
||||
<button type="action"
|
||||
name="%(mrp.action_change_production_qty)d"
|
||||
string="Update" states="confirmed,planned,progress" class="oe_link" attrs="{'invisible': [('state','=','done')]}"/>
|
||||
string="Update" class="oe_link" attrs="{'invisible': ['|', ('state', 'in', ('done','cancel')), ('id', '=', False)]}"/>
|
||||
</div>
|
||||
<field name="bom_id"
|
||||
domain="['&', '|',
|
||||
|
||||
Reference in New Issue
Block a user