[FIX] mrp: filter pending by default

Pending WO should not be displayed by default since they are not
expected to be launched yet.

opw-1934087

closes odoo/odoo#30586
This commit is contained in:
Nicolas Martinelli
2019-01-28 08:44:18 +00:00
parent 37f7f7b29a
commit d259b5b8a6
+1 -1
View File
@@ -171,7 +171,7 @@
<div class="col-6 o_kanban_primary_left">
<div class="btn-group" name="o_wo">
<t t-if="record.workorder_count.raw_value &gt; 0">
<button class="btn btn-primary" name="%(action_work_orders)d" type="action" context="{'search_default_ready': 1, 'search_default_progress': 1, 'search_default_pending': 1}">
<button class="btn btn-primary" name="%(action_work_orders)d" type="action" context="{'search_default_ready': 1, 'search_default_progress': 1}">
<span>WORK ORDERS</span>
</button>
</t>