details: https://code.tryton.org/tryton/commit/cf4239a81128
branch: default
user: Sergi Almacellas Abellana <[email protected]>
date: Wed Mar 18 16:46:38 2026 +0100
description:
Delete the movable locations when the internal shipment is deleted
Closes #14690
diffstat:
modules/stock_location_move/stock.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 457504232b31 -r cf4239a81128 modules/stock_location_move/stock.py
--- a/modules/stock_location_move/stock.py Tue Mar 17 17:45:22 2026 +0100
+++ b/modules/stock_location_move/stock.py Wed Mar 18 16:46:38 2026 +0100
@@ -212,7 +212,8 @@
__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=[