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__()