Browse Source

[FIX] base_concurrency: On delete cascade for table

pull/547/head
Pedro M. Baeza 8 years ago
parent
commit
ef53881b00
  1. 2
      base_concurrency/__openerp__.py
  2. 3
      base_concurrency/res_users.py

2
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": """

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

Loading…
Cancel
Save