Skip to content

Commit

Permalink
Merge PR #1 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by mikevhe18
  • Loading branch information
ssi-bot committed Jun 16, 2024
2 parents 42edab8 + 60c0650 commit a8b736c
Show file tree
Hide file tree
Showing 33 changed files with 1,285 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
name: Detect unreleased dependencies
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: |
for reqfile in requirements.txt test-requirements.txt ; do
if [ -f ${reqfile} ] ; then
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install addons and dependencies
Expand All @@ -65,7 +65,9 @@ jobs:
run: oca_init_test_database
- name: Run tests
run: oca_run_tests
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Update .pot files
run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }}
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'OCA' }}
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ repos:
- --settings=.
exclude: /__init__\.py$
- repo: https://github.com/acsone/setuptools-odoo
rev: 2.6.0
rev: 3.1.8
hooks:
- id: setuptools-odoo-make-default
- id: setuptools-odoo-get-requirements
args:
- --output
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# generated from manifests external_dependencies
pandas
2 changes: 2 additions & 0 deletions setup/.setuptools-odoo-make-default-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# addons listed in this file are ignored by
# setuptools-odoo-make-default (one addon per line)
2 changes: 2 additions & 0 deletions setup/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
To learn more about this directory, please visit
https://pypi.python.org/pypi/setuptools-odoo
1 change: 1 addition & 0 deletions setup/ssi_fingerspot/odoo/addons/ssi_fingerspot
6 changes: 6 additions & 0 deletions setup/ssi_fingerspot/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
48 changes: 48 additions & 0 deletions ssi_fingerspot/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

===================================================
Fingerspot Attendance Machine Integration with Odoo
===================================================


Installation
============

To install this module, you need to:

1. Clone the branch 14.0 of the repository https://github.com/open-synergy/ssi-fingerspot
2. Add the path to this repository in your configuration (addons-path)
3. Update the module list
4. Go to menu *Apps -> Apps -> Main Apps*
5. Search For *Fingerspot Attendance Machine Integration with Odoo*
6. Install the module

Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/open-synergy/ssi-fingerspot/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed
and welcomed feedback.


Credits
=======

Contributors
------------

* Miftahussalam <[email protected]>
* Michael Viriyananda <[email protected]>

Maintainer
----------

.. image:: https://simetri-sinergi.id/logo.png
:alt: PT. Simetri Sinergi Indonesia
:target: https://simetri-sinergi.id

This module is maintained by the PT. Simetri Sinergi Indonesia.
8 changes: 8 additions & 0 deletions ssi_fingerspot/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright 2024 OpenSynergy Indonesia
# Copyright 2024 PT. Simetri Sinergi Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import (
models,
wizard,
)
32 changes: 32 additions & 0 deletions ssi_fingerspot/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright 2024 OpenSynergy Indonesia
# Copyright 2024 PT. Simetri Sinergi Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Fingerspot Attendance Machine Integration with Odoo",
"version": "14.0.1.0.0",
"website": "https://simetri-sinergi.id",
"author": "OpenSynergy Indonesia, PT. Simetri Sinergi Indonesia",
"license": "AGPL-3",
"installable": True,
"external_dependencies": {"python": ["pandas"]},
"depends": [
"ssi_master_data_mixin",
"ssi_timesheet_attendance",
"queue_job_batch",
"base_automation",
],
"data": [
"security/res_group_data.xml",
"security/ir.model.access.csv",
"data/ir_cron.xml",
"data/ir_cron_import_attendance.xml",
"data/hr_attendance_reason.xml",
"menu.xml",
"views/fingerspot_data_machine_views.xml",
"views/fingerspot_attendance_machine_views.xml",
"views/fingerspot_backend_views.xml",
"views/res_company_views.xml",
"views/hr_timesheet_attendance_views.xml",
"wizard/fingerspot_attendance_machine_import_wizard_views.xml",
],
}
16 changes: 16 additions & 0 deletions ssi_fingerspot/data/hr_attendance_reason.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="hr_attendance_reason_import_fingerspot_in" model="hr.attendance_reason">
<field name="name">[SYSTEM] Import check in from fingerspot machine</field>
<field name="code">FINGER-IN</field>
<field name="by_system">True</field>
</record>
<record
id="hr_attendance_reason_import_fingerspot_out"
model="hr.attendance_reason"
>
<field name="name">[SYSTEM] Import check out from fingerspot machine</field>
<field name="code">FINGER-OUT</field>
<field name="by_system">True</field>
</record>
</odoo>
24 changes: 24 additions & 0 deletions ssi_fingerspot/data/ir_cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2024 OpenSynergy Indonesia
Copyright 2024 PT. Simetri Sinergi Indonesia
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<data noupdate="1">

<record id="ir_cron_generate_attendance" model="ir.cron">
<field name="name">Generate Attendance Machine</field>
<field name="model_id" ref="model_fingerspot_attendance_machine" />
<field name="state">code</field>
<field name="code">model._cron_generate_attendances()</field>
<field name="user_id" ref="base.user_root" />
<field name="interval_number">12</field>
<field name="interval_type">hours</field>
<field name="numbercall">-1</field>
<field
name="nextcall"
eval="(DateTime.now() + timedelta(days=1)).strftime('%Y-%m-%d 02:00:00')"
/>
<field eval="False" name="doall" />
</record>
</data>
</odoo>
26 changes: 26 additions & 0 deletions ssi_fingerspot/data/ir_cron_import_attendance.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2024 OpenSynergy Indonesia
Copyright 2024 PT. Simetri Sinergi Indonesia
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<data noupdate="1">
<record id="ir_cron_import_attendance" model="ir.cron">
<field name="name">Import Attendance from Fingerspot Machine</field>
<field
name="model_id"
ref="model_fingerspot_attendance_machine_import_wizard"
/>
<field name="state">code</field>
<field name="code">model._cron_import_attendance()</field>
<field name="user_id" ref="base.user_root" />
<field name="interval_number">12</field>
<field name="interval_type">hours</field>
<field name="numbercall">-1</field>
<field
name="nextcall"
eval="(DateTime.now() + timedelta(days=1)).strftime('%Y-%m-%d 01:00:00')"
/>
<field eval="False" name="doall" />
</record>
</data>
</odoo>
26 changes: 26 additions & 0 deletions ssi_fingerspot/menu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2024 OpenSynergy Indonesia
Copyright 2024 PT. Simetri Sinergi Indonesia
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>

<menuitem
id="fingerspot_configuration_menu"
name="Fingerspot"
parent="base.menu_custom"
/>
<menuitem
id="fingerspot_menu"
name="Fingerspots"
parent="ssi_hr.menu_root_human_resource"
sequence="10"
/>
<menuitem
id="menu_fingerspot_machine_configuration"
name="Data Machine"
parent="ssi_hr.menu_human_resource_configuration"
groups="fingerspot_attendance_machine_group"
sequence="10"
/>

</odoo>
12 changes: 12 additions & 0 deletions ssi_fingerspot/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2024 OpenSynergy Indonesia
# Copyright 2024 PT. Simetri Sinergi Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import (
fingerspot_data_machine,
fingerspot_machine_user,
fingerspot_attendance_machine,
fingerspot_backend,
hr_timesheet_attendance,
res_company,
)
Loading

0 comments on commit a8b736c

Please sign in to comment.