Delete the movable locations when the internal shipment is deleted

Closes #14690
This commit is contained in:
Sergi Almacellas Abellana committed 2026-03-18 16:46:38 +01:00
1 parent d0f6af4881
commit ed30a4efde
1 file changed
+2 -1
+2 -1
View File
@@ -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=[