Browse Source
[FIX]Hide picking count in Draft State
pull/124/head
Cybrosys Technologies
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
mrp_production_draft/views/mrp_production_view.xml
|
|
@ -18,6 +18,11 @@ |
|
|
|
<field name="product_uom_id" position="replace"> |
|
|
|
<field name="product_uom_id" options="{'no_open':True,'no_create':True}" groups="uom.group_uom" attrs="{'readonly': [('has_moves', '=', True)],'required': [('product_id', '!=', False)]}"/> |
|
|
|
</field> |
|
|
|
<button name="action_view_mo_delivery" position="replace"> |
|
|
|
<button type="object" name="action_view_mo_delivery" class="oe_stat_button" icon="fa-truck" attrs="{'invisible': ['|',('delivery_count', '=', 0),('state', '=', 'draft')]}" groups="base.group_user"> |
|
|
|
<field name="delivery_count" widget="statinfo" string="Picking"/> |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
|
|
|
|
</field> |
|
|
|
</record> |
|
|
|