From ed30a4efde6f67a79bcbf5579214e4024c3b3955 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Wed, 18 Mar 2026 16:46:38 +0100 Subject: [PATCH] Delete the movable locations when the internal shipment is deleted Closes #14690 --- modules/stock_location_move/stock.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/stock_location_move/stock.py b/modules/stock_location_move/stock.py index 783108d76f..e678b2489f 100644 --- a/modules/stock_location_move/stock.py +++ b/modules/stock_location_move/stock.py @@ -212,7 +212,8 @@ class ShipmentInternal_Location(ModelSQL): __name__ = 'stock.shipment.internal-location' shipment = fields.Many2One( - 'stock.shipment.internal', "Shipment", required=True) + 'stock.shipment.internal', "Shipment", required=True, + ondelete='CASCADE') location = fields.Many2One( 'stock.location', "Location", required=True, domain=[