From 44818b64d87bd52e6dbf67e00d317fb4b09fb52f Mon Sep 17 00:00:00 2001 From: SHEREEF PT Date: Tue, 12 Dec 2017 12:44:51 +0530 Subject: [PATCH] [CHNG] manifest --- hr_zk_attendance/__manifest__.py | 3 + hr_zk_attendance/__manifest__.py~ | 43 ----- hr_zk_attendance/models/zk_machine.py | 10 +- .../static/description/index.html~ | 159 ------------------ 4 files changed, 9 insertions(+), 206 deletions(-) delete mode 100644 hr_zk_attendance/__manifest__.py~ delete mode 100644 hr_zk_attendance/static/description/index.html~ diff --git a/hr_zk_attendance/__manifest__.py b/hr_zk_attendance/__manifest__.py index 41cefd692..4b4c11ee8 100644 --- a/hr_zk_attendance/__manifest__.py +++ b/hr_zk_attendance/__manifest__.py @@ -36,6 +36,9 @@ ], 'images': ['static/description/banner.gif'], 'license': 'AGPL-3', + 'external_dependencies': { + 'python': ['zklib'] + }, 'demo': [], 'installable': True, 'auto_install': False, diff --git a/hr_zk_attendance/__manifest__.py~ b/hr_zk_attendance/__manifest__.py~ deleted file mode 100644 index 41cefd692..000000000 --- a/hr_zk_attendance/__manifest__.py~ +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-TODAY Cybrosys Technologies(). -# Author: Jesni Banu() -# -# This program is free software: you can modify -# it under the terms of the GNU Affero General Public License (AGPL) as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -################################################################################### -{ - 'name': 'Biometric Device Integration', - 'version': '10.0.1.0.0', - 'summary': """Integrating Biometric Device With HR Attendance (Face + Thumb)""", - 'description': 'This module integrates Odoo with the biometric device(Model: ZKteco uFace 202)', - 'category': 'Generic Modules/Human Resources', - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'website': "http://www.cybrosys.com", - 'depends': ['base_setup', 'hr_attendance'], - 'data': [ - 'security/ir.model.access.csv', - 'views/zk_machine_view.xml', - 'views/zk_machine_attendance_view.xml', - ], - 'images': ['static/description/banner.gif'], - 'license': 'AGPL-3', - 'demo': [], - 'installable': True, - 'auto_install': False, - 'application': False, -} diff --git a/hr_zk_attendance/models/zk_machine.py b/hr_zk_attendance/models/zk_machine.py index f2319723c..7188fb57a 100644 --- a/hr_zk_attendance/models/zk_machine.py +++ b/hr_zk_attendance/models/zk_machine.py @@ -22,15 +22,17 @@ import pytz import sys import datetime -from zklib import zklib -from zklib.zkconst import * +try: + from zklib import zklib + from zklib.zkconst import * + sys.path.append("zklib") +except ImportError: + pass from struct import unpack from odoo import api, fields, models from odoo import _ from odoo.exceptions import UserError, ValidationError -sys.path.append("zklib") - class HrAttendance(models.Model): _inherit = 'hr.attendance' diff --git a/hr_zk_attendance/static/description/index.html~ b/hr_zk_attendance/static/description/index.html~ deleted file mode 100644 index 7ba5f91a5..000000000 --- a/hr_zk_attendance/static/description/index.html~ +++ /dev/null @@ -1,159 +0,0 @@ -
-
-

Biometric Device Integration

-

This Module Integrating Biometric Device With HR Attendance

-

Cybrosys Technologies

-
-
-
- Ingrates biometric device(Face+Thumb) with HR attendance.
- Option to keep the device attendance log in Odoo.
- Option to clear the device attendance log from both device and Odoo.
- Automating HR attendance.
- Option to configure multiple devices.
-
-
-
- -
-
-
-

Overview

-

- Automation is an implementation factor for a successful ERP. With this module, - HR attendance can automate by integrating Thumb / Face detection device with Odoo. - We can configure a user both from thumbing device or Odoo employee form. -

-
-
-
- -
-
-
-

-

Biometric Device Configuration

-

-

-
- Here you can configure your all devices with it's IP address and port number. -
- -
-
-
-
- -
-
-
-

-

Download/Clear Device Attendance Log

-

-

-
- After configuration, you can download your device attendance log into Odoo through - 'Download' button.If the device is connected, then the Odoo will download all device - attendance log. - Otherwise, the Odoo will show you a warning message as follow. -
- -
-
-
- You can also clear all attendance log from both Odoo and device via 'Clear' button. - If the device is not connected it will show you a warning message as follow. -
- -
-
-
-
- -
-
-
-

-

Biometric Device Attendance Log

-

-

-
- Here you can see all device attendance log -
- -
-
-
-
- -
-
-
-

-

HR Attendance

-

-

-
- Here, Odoo automatically generates HR attendance log while downloading the device attendance. -
- -
-
-
-
- -
-
-
-

-

Employee Configuration

-

-

-
- You can update existing employees with the 'Device Id' which are the id in the biometric device. - If there is no match with the biometric device id then system will automatically create corresponding employee. -
- -
-
-
-
- -
-
- Note:- This integration is only applicable for the the device ZKteco model 'uFace 202'
- Please install zklib library (sudo pip install zklib)
-
-
- -
-
Having any trouble in using the app? Or Do you need any further assistance?
-
Give a Request Mail to:    odoo@cybrosys.com
-
- -
-

Need Any Help?

- -
-