From 63a3b9b4b31b95088bd4bc83332f95d3baeca2a3 Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Thu, 20 Nov 2008 18:31:12 +0100 Subject: [PATCH] Fix: handle correctly forecast deletion --- forecast.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/forecast.py b/forecast.py index 7bb9a4aae4..f87834f4fe 100644 --- a/forecast.py +++ b/forecast.py @@ -166,7 +166,8 @@ class ForecastLine(OSV): moves = fields.Many2Many( 'stock.move', 'forecast_line_stock_move_rel', 'line', 'move','Moves', readonly=True, ondelete_target='CASCADE') - forecast = fields.Many2One('stock.forecast', 'Forecast', required=True) + forecast = fields.Many2One( + 'stock.forecast', 'Forecast', required=True, ondelete='CASCADE',) def __init__(self): super(ForecastLine, self).__init__()