~moldeo-openerp-addons/openerp-hr-clock-reader/trunk

« back to all changes in this revision

Viewing changes to lib/attendance_creator.py

  • Committer: root
  • Date: 2012-05-30 19:36:39 UTC
  • Revision ID: root@reloj-20120530193639-kgcrj5kajfrsfq4w
Clock login id added to employee

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
 
70
70
    def employee_id(self, card_id):
71
71
        emp_ids = self.emp_pool.search(self.cr, self.uid,
72
 
                                       [('otherid', '=', card_id)],
 
72
                                       [('clock_login_id', '=', card_id)],
73
73
                                       context=self.context)
74
74
        if len(emp_ids) > 1:
75
75
            raise MultipleAssignedCardError(emp_ids, card_id)