Skip to content

Commit

Permalink
Merge 5c54540 into 6208fa6
Browse files Browse the repository at this point in the history
  • Loading branch information
azmimr67 committed Jan 22, 2021
2 parents 6208fa6 + 5c54540 commit 7dfc146
Show file tree
Hide file tree
Showing 5 changed files with 142 additions and 0 deletions.
49 changes: 49 additions & 0 deletions hr_holiday_dashboard_tile/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

===============================
HR Holiday - Dashboard and Tile
===============================


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

To install this module, you need to:

1. Clone the branch 8.0 of the repository https://github.com/open-synergy/opnsynid-hr
2. Add the path to this repository in your configuration (addons-path)
3. Update the module list
4. Go to menu *Setting -> Modules -> Local Modules*
5. Search For *HR Holiday - Dashboard and Tile*
6. Install the module


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

Bugs are tracked on `GitHub Issues
<https://github.com/open-synergy/opnsynid-hr/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
------------

* Nur Azmi <azmimr67@gmail.com>
* Michael Viriyananda <viriyananda.michael@gmail.com>
* Andhitia Rama <andhitia.r@gmail.com>

Maintainer
----------

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

This module is maintained by the PT. Simetri Sinergi Indonesia.
4 changes: 4 additions & 0 deletions hr_holiday_dashboard_tile/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
# Copyright 2020 OpenSynergy Indonesia
# Copyright 2020 PT. Simetri Sinergi Indonesia
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
22 changes: 22 additions & 0 deletions hr_holiday_dashboard_tile/__openerp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Copyright 2020 OpenSynergy Indonesia
# Copyright 2020 PT. Simetri Sinergi Indonesia
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
# pylint: disable=locally-disabled, manifest-required-author
{
"name": "HR Holiday - Dashboard and Tile",
"version": "8.0.1.0.0",
"category": "Human Resources",
"website": "https://simetri-sinergi.id",
"author": "PT. Simetri Sinergi Indonesia, OpenSynergy Indonesia",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": [
"web_dashboard_tile",
"hr_holidays",
],
"data": [
"data/dashboard_tile_hr_holiday_data.xml",
],
}
67 changes: 67 additions & 0 deletions hr_holiday_dashboard_tile/data/dashboard_tile_hr_holiday_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2020 OpenSynergy Indonesia
Copyright 2020 PT Simetri Sinergi Indonesia
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->

<openerp>
<data>
<!-- HR Leave Request-->
<record id="dashboard_tile_all_hr_leave_request_draft" model="tile.tile">
<field name="name">All HR Leave Request: Draft</field>
<field name="sequence">31</field>
<field name="domain">
[
("type", "=", "remove"),
("state", "=", "draft"),
]
</field>
<field name="model_id" search="[('model','=','hr.holidays')]"/>
<field name="action_id" ref="hr_holidays.open_ask_holidays" />
<field name="primary_function">count</field>
<field name="background_color">#776D8A</field>
</record>
<record id="dashboard_tile_all_hr_leave_request_confirm" model="tile.tile">
<field name="name">All HR Leave Request: Waiting For Approval</field>
<field name="sequence">31</field>
<field name="domain">
[
("type", "=", "remove"),
("state", "=", "confirm"),
]
</field>
<field name="model_id" search="[('model','=','hr.holidays')]"/>
<field name="action_id" ref="hr_holidays.open_ask_holidays" />
<field name="primary_function">count</field>
<field name="background_color">#776D8A</field>
</record>
<!-- HR Leave Allocation Request-->
<record id="dashboard_tile_all_hr_leave_alloc_req_draft" model="tile.tile">
<field name="name">All HR Leave Allocation Request: Draft</field>
<field name="sequence">32</field>
<field name="domain">
[
("type", "=", "add"),
("state", "=", "draft"),
]
</field>
<field name="model_id" search="[('model','=','hr.holidays')]"/>
<field name="action_id" ref="hr_holidays.open_allocation_holidays" />
<field name="primary_function">count</field>
<field name="background_color">#9CADA4</field>
</record>
<record id="dashboard_tile_all_hr_leave_alloc_req_confirm" model="tile.tile">
<field name="name">All HR Leave Allocation Request: Waiting For Approval</field>
<field name="sequence">32</field>
<field name="domain">
[
("type", "=", "add"),
("state", "=", "confirm"),
]
</field>
<field name="model_id" search="[('model','=','hr.holidays')]"/>
<field name="action_id" ref="hr_holidays.open_allocation_holidays" />
<field name="primary_function">count</field>
<field name="background_color">#9CADA4</field>
</record>
</data>
</openerp>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7dfc146

Please sign in to comment.