diff --git a/base_login_date_improvement/__openerp__.py b/base_login_date_improvement/__openerp__.py index d9b637750..860264bd0 100644 --- a/base_login_date_improvement/__openerp__.py +++ b/base_login_date_improvement/__openerp__.py @@ -32,7 +32,8 @@ This creates a new table and a function field to avoid this. """, "website": "http://camptocamp.com", "depends": ['base'], - "data": [], + "data": ['security/ir.model.access.csv', + ], "auto_install": False, "installable": True } diff --git a/base_login_date_improvement/res_users.py b/base_login_date_improvement/res_users.py index 08117fada..393017270 100644 --- a/base_login_date_improvement/res_users.py +++ b/base_login_date_improvement/res_users.py @@ -61,7 +61,8 @@ class ResUsers(orm.Model): 'login_date': fields.function(_get_login_date, string='Latest connection', type='date', select=1, - readonly=True, store=False), + readonly=True, store=False, + nodrop=True), } # Re-defining the login function in order to use the new table