Fix: handle correctly forecast deletion

This commit is contained in:
Bertrand Chenal committed 2008-11-20 18:31:12 +01:00
1 parent aed394fc4c
commit 63a3b9b4b3
1 file changed
+2 -1
+2 -1
View File
@@ -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__()