[IMP] mrp: apply small UX changes to reports
Small updates: - Rearrange order of report menu. - Update default filters/groupings for some reports. - Make work center "Load" smart button load graph view with filter defaults to match number calculated for smart button. Part of review for task: 2440068 Related ENT PR: odoo/enterprise#20169 Part-of: odoo/odoo#74951
This commit is contained in:
@@ -578,7 +578,13 @@
|
||||
<field name="res_model">mrp.production</field>
|
||||
<field name="view_mode">graph,pivot,form</field>
|
||||
<field name="target">current</field>
|
||||
<field name="context">{'search_default_scheduled_date': 1, 'search_default_product': 2, 'default_company_id': allowed_company_ids[0]}</field>
|
||||
<field name="context">{
|
||||
'search_default_product': 1,
|
||||
'search_default_scheduled_date': 2,
|
||||
'search_default_filter_confirmed': True,
|
||||
'search_default_filter_planned': True,
|
||||
'default_company_id': allowed_company_ids[0]
|
||||
}</field>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
No data yet!
|
||||
@@ -605,7 +611,7 @@
|
||||
parent="menu_mrp_reporting"
|
||||
action="mrp_workorder_report"
|
||||
groups="group_mrp_routings"
|
||||
sequence="11"/>
|
||||
sequence="10"/>
|
||||
|
||||
<record id="action_mrp_production_form" model="ir.actions.act_window">
|
||||
<field name="name">Manufacturing Orders</field>
|
||||
|
||||
@@ -134,7 +134,11 @@
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">mrp.workorder</field>
|
||||
<field name="domain">[]</field>
|
||||
<field name="context">{'search_default_workcenter': 1, 'search_default_product': 2}</field>
|
||||
<field name="context">{'search_default_workcenter': 1,
|
||||
'search_default_ready': True,
|
||||
'search_default_waiting': True,
|
||||
'search_default_pending': True,
|
||||
'search_default_progress': True,}</field>
|
||||
<field name="view_mode">graph,pivot,tree,form,gantt</field>
|
||||
<field name="search_view_id" ref="view_mrp_production_work_order_search"/>
|
||||
<field name="help" type="html">
|
||||
@@ -316,7 +320,12 @@
|
||||
<span class="o_stat_text">Lost</span>
|
||||
</div>
|
||||
</button>
|
||||
<button name="%(action_mrp_workcenter_load_report_graph)d" type="action" class="oe_stat_button" icon="fa-bar-chart" context="{'search_default_workcenter_id': id}">
|
||||
<button name="%(action_mrp_workcenter_load_report_graph)d" type="action" class="oe_stat_button" icon="fa-bar-chart"
|
||||
context="{'search_default_workcenter_id': id,
|
||||
'search_default_ready': True,
|
||||
'search_default_waiting': True,
|
||||
'search_default_pending': True,
|
||||
'search_default_progress': True}">
|
||||
<div class="o_field_widget o_stat_info">
|
||||
<span class="o_stat_value"><field name="workcenter_load" widget="statinfo" nolabel="1"/> Minutes</span>
|
||||
<span class="o_stat_text">Load</span>
|
||||
|
||||
Reference in New Issue
Block a user