[FIX] mrp: WO report

- Activate Work Orders
- Go in MRP > Reporting > Work Orders

The status filters ('Ready', 'Pending'...) do not work.

This is because the action forces the domain to `[('state','=','done')]`
instead of using one of the available filters.

opw-788043
This commit is contained in:
Nicolas Martinelli
2017-12-22 15:44:59 +01:00
committed by Nicolas Martinelli
parent 2aa3132d09
commit fbaee8b267
+4 -2
View File
@@ -103,9 +103,11 @@
<field name="name">Work Orders Performance</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">mrp.workorder</field>
<field name="domain">[('state','=','done')]</field>
<field name="domain">[]</field>
<field name="context">{'search_default_done': True}</field>
<field name="view_type">form</field>
<field name="view_mode">graph,pivot,tree,form,gantt</field>
<field name="search_view_id" ref="view_mrp_production_work_order_search"/>
</record>
<!-- Workcenter Kanban view-->
@@ -567,4 +569,4 @@
groups="group_mrp_routings"
sequence="12"/>
</data>
</odoo>
</odoo>