[REF] hr: remove login and last_login fields on employee model

Those fields are never used anywhere. Moreover attendance module can be
used to track employee log in / log out and compute its attendances.
Let us therefore remove those fields.
This commit is contained in:
Thibault Delavallée
2017-02-16 16:51:51 +01:00
parent 68a97420c3
commit d5aeaeeba2
2 changed files with 0 additions and 3 deletions
-2
View File
@@ -145,8 +145,6 @@ class Employee(models.Model):
passport_id = fields.Char('Passport No')
color = fields.Integer('Color Index', default=0)
city = fields.Char(related='address_id.city')
login = fields.Char(related='user_id.login', readonly=True)
last_login = fields.Datetime(related='user_id.login_date', string='Latest Connection', readonly=True)
# image: all image fields are base64 encoded and PIL-supported
image = fields.Binary("Photo", default=_default_image, attachment=True,
-1
View File
@@ -160,7 +160,6 @@
<field name="priority">10</field>
<field name="arch" type="xml">
<kanban class="o_hr_employee_kanban">
<field name="last_login"/>
<field name="message_is_follower"/>
<field name="message_follower_ids"/>
<field name="message_ids"/>