[FIX] share wizard: delete wizard lines in cascade
authorChristophe Simonis <chs@openerp.com>
Fri, 14 Mar 2014 11:59:36 +0000 (12:59 +0100)
committerChristophe Simonis <chs@openerp.com>
Fri, 14 Mar 2014 11:59:36 +0000 (12:59 +0100)
bzr revid: chs@openerp.com-20140314115936-8y6eg51tzmsdlb85

addons/share/wizard/share_wizard.py

index b5072f2..e9d83be 100644 (file)
@@ -925,7 +925,7 @@ class share_result_line(osv.osv_memory):
         'login': fields.related('user_id', 'login', string='Login', type='char', size=64, required=True, readonly=True),
         'password': fields.char('Password', size=64, readonly=True),
         'share_url': fields.function(_share_url, string='Share URL', type='char', size=512),
-        'share_wizard_id': fields.many2one('share.wizard', 'Share Wizard', required=True),
+        'share_wizard_id': fields.many2one('share.wizard', 'Share Wizard', required=True, ondelete='cascade'),
         'newly_created': fields.boolean('Newly created', readonly=True),
     }
     _defaults = {