[FIX] marketing_campaign: error during migration

Without this patch, there's a traceback when creating a segment due
to an onchange trying to set an attribute `ir_filter_id` to a dict.

related to rev 0fa2ac1d5d
This commit is contained in:
Simon Lejeune
2016-08-24 14:51:02 +02:00
parent 6db882d50d
commit bef8c204ce
@@ -200,7 +200,7 @@ class MarketingCampaignSegment(models.Model):
if model:
res['domain']['ir_filter_id'] = [('model_id', '=', model)]
else:
res.ir_filter_id = False
self.ir_filter_id = False
return res
@api.multi