Skip to content
Snippets Groups Projects
Commit e0afb293 authored by svs-odoo's avatar svs-odoo
Browse files

[FIX] mrp: don't always display MO pickings button


Before this commit, Pickings button was always visible in manufacturing
order form view.
Now, it will be only visible if the MO has at least one picking.

Task #2047626

closes odoo/odoo#35455

Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
parent cbcdac46
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@
</div>
</button>
<button name="%(action_mrp_production_moves)d" type="action" string="Product Moves" class="oe_stat_button" icon="fa-exchange" attrs="{'invisible': [('state', 'not in', ('progress', 'done'))]}"/>
<button type="object" name="action_view_mo_delivery" class="oe_stat_button" icon="fa-truck" groups="base.group_user">
<button type="object" name="action_view_mo_delivery" class="oe_stat_button" icon="fa-truck" groups="base.group_user" attrs="{'invisible': [('delivery_count', '=', 0)]}">
<field name="delivery_count" widget="statinfo" string="Pickings"/>
</button>
<button class="oe_stat_button" name="action_see_move_scrap" type="object" icon="fa-arrows-v" attrs="{'invisible': [('scrap_count', '=', 0)]}">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment