From 41f5f350c1535140f1dcc6cd768c1915d9345588 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Fri, 1 Aug 2014 17:56:28 +0200 Subject: [PATCH] Add missing ondelete cascade on allocations issue4093 review7461002 --- allocation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/allocation.py b/allocation.py index cb75df71b5..66a3feb9eb 100644 --- a/allocation.py +++ b/allocation.py @@ -11,9 +11,9 @@ class Allocation(ModelSQL, ModelView): __name__ = 'project.allocation' _rec_name = 'employee' employee = fields.Many2One('company.employee', 'Employee', required=True, - select=True) + select=True, ondelete='CASCADE') work = fields.Many2One('project.work', 'Work', required=True, - select=True) + select=True, ondelete='CASCADE') percentage = fields.Float('Percentage', digits=(16, 2), required=True) @classmethod