mrp_usability: improve mrp reporting

Add product category in reporting
Pivot view by default instead of graph view
Default measure total qty instead of count
This commit is contained in:
Alexis de Lattre
2024-04-08 10:34:37 +02:00
parent 85b4cc25eb
commit 6d847dcbe9
2 changed files with 18 additions and 0 deletions

View File

@@ -17,6 +17,8 @@ class MrpProduction(models.Model):
'progress': [('readonly', False)], # added
'to_close': [('readonly', False)], # added
}, tracking=True)
# Add field product_categ_id for reporting only
product_categ_id = fields.Many2one(related='product_id.categ_id', store=True)
# Method used by the report, inherited in this module
@api.model