diff --git a/ddmrp_warning/models/ddmrp_warning_item.py b/ddmrp_warning/models/ddmrp_warning_item.py index 497509c07..bfb5f16f4 100644 --- a/ddmrp_warning/models/ddmrp_warning_item.py +++ b/ddmrp_warning/models/ddmrp_warning_item.py @@ -16,6 +16,8 @@ class DdmrpWarningItem(models.Model): name = fields.Char( compute="_compute_name", ) + product_id = fields.Many2one(related="buffer_id.product_id") + location_id = fields.Many2one(related="buffer_id.location_id") severity = fields.Selection( related="warning_definition_id.severity", store=True, diff --git a/ddmrp_warning/views/ddmrp_warning_item_views.xml b/ddmrp_warning/views/ddmrp_warning_item_views.xml index 60f4a3e1b..e5f3ab2c4 100644 --- a/ddmrp_warning/views/ddmrp_warning_item_views.xml +++ b/ddmrp_warning/views/ddmrp_warning_item_views.xml @@ -13,7 +13,9 @@ decoration-danger="severity == '3_high'" > + + @@ -25,10 +27,19 @@
- - - - + + + + + + + + + +
@@ -40,6 +51,8 @@ + +