Browse Source

[CHNG] manifest

pull/45/head
SHEREEF PT 7 years ago
parent
commit
44818b64d8
  1. 3
      hr_zk_attendance/__manifest__.py
  2. 43
      hr_zk_attendance/__manifest__.py~
  3. 10
      hr_zk_attendance/models/zk_machine.py
  4. 159
      hr_zk_attendance/static/description/index.html~

3
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,

43
hr_zk_attendance/__manifest__.py~

@ -1,43 +0,0 @@
# -*- coding: utf-8 -*-
###################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Jesni Banu(<https://www.cybrosys.com>)
#
# 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 <http://www.gnu.org/licenses/>.
#
###################################################################################
{
'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,
}

10
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'

159
hr_zk_attendance/static/description/index.html~

@ -1,159 +0,0 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">Biometric Device Integration</h2>
<h3 class="oe_slogan">This Module Integrating Biometric Device With HR Attendance</h3>
<h4 class="oe_slogan"><a href="https://www.cybrosys.com">Cybrosys Technologies</a> </h4>
</div>
<div class="oe_row oe_spaced" style="padding-left:65px;">
<div>
<span style="color:green;"> &#9745; </span> Ingrates biometric device(Face+Thumb) with HR attendance.<br/>
<span style="color:green;"> &#9745; </span> Option to keep the device attendance log in Odoo.<br/>
<span style="color:green;"> &#9745; </span> Option to clear the device attendance log from both device and Odoo.<br/>
<span style="color:green;"> &#9745; </span> Automating HR attendance.<br/>
<span style="color:green;"> &#9745; </span> Option to configure multiple devices.<br/>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<div class="oe_picture">
<h3 class="oe_slogan">Overview</h3>
<p class="oe_mt32 text-justify" style="text-align: center;">
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.
</p>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<div style="text-align: center">
<p>
<h4>Biometric Device Configuration</h4>
<p>
</div>
<div style="text-align: center">
<span>Here you can configure your all devices with it's IP address and port number.</span>
<div class="oe_demo oe_picture oe_screenshot">
<img style="border:10px solid white;" src="zk_config.png">
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<div style="text-align: center">
<p>
<h4>Download/Clear Device Attendance Log</h4>
<p>
</div>
<div style="text-align: center">
<span>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.</span>
<div class="oe_demo oe_picture oe_screenshot">
<img style="border:10px solid white;" src="zk_warning.png">
</div>
</div>
<div style="text-align: center">
<span>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.</span>
<div class="oe_demo oe_picture oe_screenshot">
<img style="border:10px solid white;" src="zk_warn2.png">
</div>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<div style="text-align: center">
<p>
<h4>Biometric Device Attendance Log</h4>
<p>
</div>
<div style="text-align: center">
<span>Here you can see all device attendance log</span>
<div class="oe_demo oe_picture oe_screenshot">
<img style="border:10px solid white;" src="devicelog.png">
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<div style="text-align: center">
<p>
<h4>HR Attendance</h4>
<p>
</div>
<div style="text-align: center">
<span>Here, Odoo automatically generates HR attendance log while downloading the device attendance.</span>
<div class="oe_demo oe_picture oe_screenshot">
<img style="border:10px solid white;" src="attendance_log.png">
</div>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<div style="text-align: center">
<p>
<h4>Employee Configuration</h4>
<p>
</div>
<div style="text-align: center">
<span>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.</span>
<div class="oe_demo oe_picture oe_screenshot">
<img style="border:10px solid white;" src="employee.png">
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="" style="text-align: center">
<span><b><i>Note:- This integration is only applicable for the the device ZKteco model 'uFace 202'<br/>
Please install zklib library (sudo pip install zklib)</i></b></span>
</div>
</section>
<section class="oe_container">
<h5 class="oe_slogan" style="margin-bottom:0px !important;font-weight: 400;margin-top:20px; color:#bb0706; font-size:20px;" >Having any trouble in using the app? Or Do you need any further assistance?</h5>
<h5 class="oe_slogan" style="font-size:20px;margin-top: 11px;">Give a Request Mail to:&nbsp;&nbsp;<i class="fa fa-envelope" aria-hidden="true"></i>&nbsp;&nbsp;<a href="#" style="color:blue;">odoo@cybrosys.com</a></h5>
</section>
<section class="oe_container oe_dark">
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2>
<div class="oe_slogan" style="margin-top:10px !important;">
<div>
<a class="btn btn-primary btn-lg mt8"
style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com"><i
class="fa fa-envelope"></i> Email </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;"
href="https://www.cybrosys.com/contact/"><i
class="fa fa-phone"></i> Contact Us </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;"
href="https://www.cybrosys.com/odoo-customization-and-installation/"><i
class="fa fa-check-square"></i> Request Customization </a>
</div>
<br>
<img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block">
<div>
<a href="https://twitter.com/cybrosys" target="_blank"><i class="fa fa-2x fa-twitter" style="color:white;background: #00a0d1;width:35px;"></i></a></td>
<a href="https://www.linkedin.com/company/cybrosys-technologies-pvt-ltd" target="_blank"><i class="fa fa-2x fa-linkedin" style="color:white;background: #31a3d6;width:35px;padding-left: 3px;"></i></a></td>
<a href="https://www.facebook.com/cybrosystechnologies" target="_blank"><i class="fa fa-2x fa-facebook" style="color:white;background: #3b5998;width:35px;padding-left: 8px;"></i></a></td>
<a href="https://plus.google.com/106641282743045431892/about" target="_blank"><i class="fa fa-2x fa-google-plus" style="color:white;background: #c53c2c;width:35px;padding-left: 3px;"></i></a></td>
<a href="https://in.pinterest.com/cybrosys" target="_blank"><i class="fa fa-2x fa-pinterest" style="color:white;background: #ac0f18;width:35px;padding-left: 3px;"></i></a></td>
</div>
</div>
</section>
Loading…
Cancel
Save