From ef53881b0038c58c152e147c067fcaf66081f165 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Sat, 3 Sep 2016 17:33:52 +0200 Subject: [PATCH] [FIX] base_concurrency: On delete cascade for table --- base_concurrency/__openerp__.py | 2 +- base_concurrency/res_users.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/base_concurrency/__openerp__.py b/base_concurrency/__openerp__.py index 277e29756..e06cc61ed 100644 --- a/base_concurrency/__openerp__.py +++ b/base_concurrency/__openerp__.py @@ -20,7 +20,7 @@ ############################################################################## {"name": "Base Concurrency", - "version": "8.0.1.0.0", + "version": "8.0.1.1.0", "author": "Camptocamp,Odoo Community Association (OCA)", "category": "Specific Module", "description": """ diff --git a/base_concurrency/res_users.py b/base_concurrency/res_users.py index 4ceeaeff5..26844d714 100644 --- a/base_concurrency/res_users.py +++ b/base_concurrency/res_users.py @@ -32,7 +32,8 @@ class ResUsersLogin(orm.Model): _name = 'res.users.login' _columns = { - 'user_id': fields.many2one('res.users', 'User', required=True), + 'user_id': fields.many2one( + 'res.users', 'User', required=True, ondelete="cascade"), 'login_dt': fields.date('Latest connection'), }