Browse Source

Add security file to __openerp__ + nodrop on login_date

pull/144/head
Matthieu Dietrich 10 years ago
parent
commit
74d5872c09
  1. 3
      base_login_date_improvement/__openerp__.py
  2. 3
      base_login_date_improvement/res_users.py

3
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", "website": "http://camptocamp.com",
"depends": ['base'], "depends": ['base'],
"data": [],
"data": ['security/ir.model.access.csv',
],
"auto_install": False, "auto_install": False,
"installable": True "installable": True
} }

3
base_login_date_improvement/res_users.py

@ -61,7 +61,8 @@ class ResUsers(orm.Model):
'login_date': fields.function(_get_login_date, 'login_date': fields.function(_get_login_date,
string='Latest connection', string='Latest connection',
type='date', select=1, 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 # Re-defining the login function in order to use the new table

Loading…
Cancel
Save