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'), }