[IMP] mrp(_account): customize measures for MO graph/pivot

Hide useless measures:
- "Backorder Sequence"
- "Extra Cost"
- "Quantity to Produce" (same as "Total Quantity", but not standardized
  to product's UoM)

Renames confusingly named measures:
- "Quantity Producing" => "Quantity Produced" (i.e. amount actually
  produced)
- "Total Quantity" => "Product Quantity" (i.e. amount scheduled to be
  produced in product's UoM)

Part 3.1 of task: 2440068
Related ENT PR: odoo/enterprise#20169

Part-of: odoo/odoo#74951
This commit is contained in:
Tiffany Chang (tic)
2021-08-26 11:34:34 +00:00
parent 064edb2223
commit b25488144e
2 changed files with 15 additions and 1 deletions
+4 -1
View File
@@ -468,7 +468,10 @@
<field name="arch" type="xml">
<graph string="Manufacturing Orders" type="bar" stacked="False" sample="1">
<field name="date_planned_finished"/>
<field name="product_uom_qty" type="measure" />
<field name="product_uom_qty" type="measure"/>
<field name="backorder_sequence" invisible="1"/>
<field name="qty_producing" string="Quantity Produced"/>
<field name="product_uom_qty" string= "Product Quantity"/>
</graph>
</field>
</record>
@@ -16,4 +16,15 @@
</xpath>
</field>
</record>
<record id="view_production_graph_inherit_mrp_account" model="ir.ui.view">
<field name="name">mrp.production.graph.inherited.mrp.account</field>
<field name="model">mrp.production</field>
<field name="inherit_id" ref="mrp.view_production_graph"/>
<field name="arch" type="xml">
<xpath expr="//graph" position="inside">
<field name="extra_cost" invisible="1"/>
</xpath>
</field>
</record>
</odoo>