Add on delete cascade if view is deleted

This commit is contained in:
Cédric Krier committed 2008-02-26 18:39:46 +01:00
1 parent 1724794f7b
commit d2cc8c31c2
1 file changed
+5 -4
+5 -4
View File
@@ -268,12 +268,13 @@ class ActionActWindowView(OSV):
_rec_name = 'view'
_description = __doc__
sequence = fields.Integer('Sequence')
view = fields.Many2One('ir.ui.view', 'View', required=True)
view = fields.Many2One('ir.ui.view', 'View', required=True,
ondelete='CASCADE')
act_window = fields.Many2One('ir.action.act_window', 'Action',
ondelete='CASCADE')
ondelete='CASCADE')
multi = fields.Boolean('On multiple doc.',
help="If set to true, the action will not be displayed \n" \
"on the right toolbar of a form views.")
help="If set to true, the action will not be displayed \n" \
"on the right toolbar of a form views.")
_order = 'sequence'
def default_multi(self, cursor, user, context=None):