Delete the movable locations when the internal shipment is deleted
Closes #14690
This commit is contained in:
1 parent
d0f6af4881
commit
ed30a4efde
1 file changed
+2
-1
@@ -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=[
|
||||
|
||||
Reference in new issue
Block a user