Add ondelete cascade on export lines

Also make the export field required

issue6551
review34171002
This commit is contained in:
Sergi Almacellas Abellana
2017-06-16 09:51:48 +02:00
parent 5dfd3b0791
commit 71b8d38cef
+2 -2
View File
@@ -21,5 +21,5 @@ class ExportLine(ModelSQL, ModelView):
"Export line"
__name__ = 'ir.export.line'
name = fields.Char('Name')
export = fields.Many2One('ir.export', 'Export',
select=True)
export = fields.Many2One('ir.export', 'Export', select=True, required=True,
ondelete='CASCADE')