From 24c7fe2d51f5c628a1ca7dcb55a0986943e3357a Mon Sep 17 00:00:00 2001 From: JordiMForgeFlow Date: Thu, 1 Aug 2024 12:52:34 +0200 Subject: [PATCH] [IMP] ddmrp_warning: various improvements - Prevent Quantity multiple bigger than MOQ warning when MOQ is 0 - Unlink warning items when warning definition is deleted - Unlink warning items when buffer is archived --- .../data/ddmrp_warning_definition_data.xml | 2 +- ddmrp_warning/models/ddmrp_warning_definition.py | 12 ++++++++++++ ddmrp_warning/models/ddmrp_warning_item.py | 1 + ddmrp_warning/models/stock_buffer.py | 7 +++++++ ddmrp_warning/tests/test_ddmrp_warning.py | 14 ++++++++++++++ 5 files changed, 35 insertions(+), 1 deletion(-) diff --git a/ddmrp_warning/data/ddmrp_warning_definition_data.xml b/ddmrp_warning/data/ddmrp_warning_definition_data.xml index d15632a72..43107cecf 100644 --- a/ddmrp_warning/data/ddmrp_warning_definition_data.xml +++ b/ddmrp_warning/data/ddmrp_warning_definition_data.xml @@ -15,7 +15,7 @@ Quantity multiple bigger than MOQ buffer.minimum_order_quantity < buffer.qty_multiple + >buffer.minimum_order_quantity > 0 and buffer.minimum_order_quantity < buffer.qty_multiple 2_mid