Browse Source

DEC 06 : [ADD] Initial Commit 'hr_payslip_monthly_report'

pull/295/head
Shijin V 1 year ago
parent
commit
8c0e83f6f1
  1. 52
      hr_payslip_monthly_report/README.rst
  2. 23
      hr_payslip_monthly_report/__init__.py
  3. 51
      hr_payslip_monthly_report/__manifest__.py
  4. 23
      hr_payslip_monthly_report/data/payslip_mail_template.xml
  5. 7
      hr_payslip_monthly_report/doc/RELEASE_NOTES.md
  6. 22
      hr_payslip_monthly_report/models/__init__.py
  7. 80
      hr_payslip_monthly_report/models/hr_payslip.py
  8. 49
      hr_payslip_monthly_report/models/res_config_settings.py
  9. 21
      hr_payslip_monthly_report/report/__init__.py
  10. 112
      hr_payslip_monthly_report/report/hr_payroll_report_view.py
  11. 79
      hr_payslip_monthly_report/report/hr_payroll_report_view_views.xml
  12. 3
      hr_payslip_monthly_report/security/ir.model.access.csv
  13. BIN
      hr_payslip_monthly_report/static/description/assets/icons/check.png
  14. BIN
      hr_payslip_monthly_report/static/description/assets/icons/chevron.png
  15. BIN
      hr_payslip_monthly_report/static/description/assets/icons/cogs.png
  16. BIN
      hr_payslip_monthly_report/static/description/assets/icons/consultation.png
  17. BIN
      hr_payslip_monthly_report/static/description/assets/icons/ecom-black.png
  18. BIN
      hr_payslip_monthly_report/static/description/assets/icons/education-black.png
  19. BIN
      hr_payslip_monthly_report/static/description/assets/icons/hotel-black.png
  20. BIN
      hr_payslip_monthly_report/static/description/assets/icons/license.png
  21. BIN
      hr_payslip_monthly_report/static/description/assets/icons/lifebuoy.png
  22. BIN
      hr_payslip_monthly_report/static/description/assets/icons/manufacturing-black.png
  23. BIN
      hr_payslip_monthly_report/static/description/assets/icons/pos-black.png
  24. BIN
      hr_payslip_monthly_report/static/description/assets/icons/puzzle.png
  25. BIN
      hr_payslip_monthly_report/static/description/assets/icons/restaurant-black.png
  26. BIN
      hr_payslip_monthly_report/static/description/assets/icons/service-black.png
  27. BIN
      hr_payslip_monthly_report/static/description/assets/icons/trading-black.png
  28. BIN
      hr_payslip_monthly_report/static/description/assets/icons/training.png
  29. BIN
      hr_payslip_monthly_report/static/description/assets/icons/update.png
  30. BIN
      hr_payslip_monthly_report/static/description/assets/icons/user.png
  31. BIN
      hr_payslip_monthly_report/static/description/assets/icons/wrench.png
  32. BIN
      hr_payslip_monthly_report/static/description/assets/misc/categories.png
  33. BIN
      hr_payslip_monthly_report/static/description/assets/misc/check-box.png
  34. BIN
      hr_payslip_monthly_report/static/description/assets/misc/compass.png
  35. BIN
      hr_payslip_monthly_report/static/description/assets/misc/corporate.png
  36. BIN
      hr_payslip_monthly_report/static/description/assets/misc/customer-support.png
  37. BIN
      hr_payslip_monthly_report/static/description/assets/misc/cybrosys-logo.png
  38. BIN
      hr_payslip_monthly_report/static/description/assets/misc/features.png
  39. BIN
      hr_payslip_monthly_report/static/description/assets/misc/logo.png
  40. BIN
      hr_payslip_monthly_report/static/description/assets/misc/pictures.png
  41. BIN
      hr_payslip_monthly_report/static/description/assets/misc/pie-chart.png
  42. BIN
      hr_payslip_monthly_report/static/description/assets/misc/right-arrow.png
  43. BIN
      hr_payslip_monthly_report/static/description/assets/misc/star.png
  44. BIN
      hr_payslip_monthly_report/static/description/assets/misc/support.png
  45. BIN
      hr_payslip_monthly_report/static/description/assets/misc/whatsapp.png
  46. BIN
      hr_payslip_monthly_report/static/description/assets/modules/1.png
  47. BIN
      hr_payslip_monthly_report/static/description/assets/modules/2.png
  48. BIN
      hr_payslip_monthly_report/static/description/assets/modules/3.png
  49. BIN
      hr_payslip_monthly_report/static/description/assets/modules/4.png
  50. BIN
      hr_payslip_monthly_report/static/description/assets/modules/5.png
  51. BIN
      hr_payslip_monthly_report/static/description/assets/modules/6.png
  52. BIN
      hr_payslip_monthly_report/static/description/assets/screenshots/1.png
  53. BIN
      hr_payslip_monthly_report/static/description/assets/screenshots/10.png
  54. BIN
      hr_payslip_monthly_report/static/description/assets/screenshots/2.png
  55. BIN
      hr_payslip_monthly_report/static/description/assets/screenshots/3.png
  56. BIN
      hr_payslip_monthly_report/static/description/assets/screenshots/4.png
  57. BIN
      hr_payslip_monthly_report/static/description/assets/screenshots/5.png
  58. BIN
      hr_payslip_monthly_report/static/description/assets/screenshots/6.png
  59. BIN
      hr_payslip_monthly_report/static/description/assets/screenshots/7.png
  60. BIN
      hr_payslip_monthly_report/static/description/assets/screenshots/8.png
  61. BIN
      hr_payslip_monthly_report/static/description/assets/screenshots/9.png
  62. BIN
      hr_payslip_monthly_report/static/description/assets/screenshots/hero.gif
  63. BIN
      hr_payslip_monthly_report/static/description/banner.png
  64. BIN
      hr_payslip_monthly_report/static/description/icon.png
  65. 628
      hr_payslip_monthly_report/static/description/index.html
  66. 17
      hr_payslip_monthly_report/views/hr_payslip_views.xml
  67. 31
      hr_payslip_monthly_report/views/res_config_settings_views.xml
  68. 22
      hr_payslip_monthly_report/wizard/__init__.py
  69. 39
      hr_payslip_monthly_report/wizard/payslip_confirm.py
  70. 30
      hr_payslip_monthly_report/wizard/payslip_confirm_views.xml

52
hr_payslip_monthly_report/README.rst

@ -0,0 +1,52 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
Payroll Advanced Features
=================
* Payroll Advanced Features For Odoo 16 Community, Payroll-Payslip Reporting,
Automatic Mail During, Confirmation of Payslip, Mass Confirm Payslip
Configuration
=============
No additional configuration required
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
License
-------
GNU Affero General Public License v3.0 (AGPL v3)
(http://www.gnu.org/licenses/agpl-3.0-standalone.html)
Credits
--------
* Developer: Anusha @ cybrosys,
(v14) Jibin James @ cybrosys,
(v15) Aneesh @ Cybrosys,
(v16) Jumana Haseen @ Cybrosys
Contacts
--------
* Mail Contact : odoo@cybrosys.com
* Website : https://cybrosys.com
Bug Tracker
-----------
Bugs are tracked on GitHub Issues. In case of trouble, please check there if
your issue has already been reported.
Maintainer
==========
.. image:: https://cybrosys.com/images/logo.png
:target: https://cybrosys.com
This module is maintained by Cybrosys Technologies.
For support and more information, please visit `Our Website <https://cybrosys.com/>`__
Further information
===================
HTML Description: `<static/description/index.html>`__

23
hr_payslip_monthly_report/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Jumana Haseen (odoo@cybrosys.com)
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# 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 (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import models
from . import report
from . import wizard

51
hr_payslip_monthly_report/__manifest__.py

@ -0,0 +1,51 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Jumana Haseen (odoo@cybrosys.com)
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# 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 (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
{
'name': 'Payroll Advanced Features',
'version': '16.0.1.0.0',
'category': 'Human Resource',
'summary': 'Payroll Advanced Features For Odoo 16 Community includes'
' Payslip monthly reports and Mass Confirm Payslip',
'description': 'Payroll Advanced Features For Odoo 16 Community includes '
'Payroll-Payslip Reporting, Automatic Mail During '
'Confirmation of Payslip, Mass Confirm Payslip ',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': 'https://www.cybrosys.com',
'images': ['static/description/banner.png'],
'license': 'AGPL-3',
'depends': [
'hr_payroll_community', 'mail',
],
'data': [
'security/ir.model.access.csv',
'views/hr_payslip_views.xml',
'views/res_config_settings_views.xml',
'data/payslip_mail_template.xml',
'wizard/payslip_confirm_views.xml',
'report/hr_payroll_report_view_views.xml',
],
'images': ['static/description/banner.png'],
'installable': True,
'auto_install': False,
'application': False,
}

23
hr_payslip_monthly_report/data/payslip_mail_template.xml

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!--Monthly Payslip Email Template-->
<record id="email_template_payslip" model="mail.template">
<field name="name">Monthly Payslip Email</field>
<field name="model_id" ref="hr_payroll_community.model_hr_payslip"/>
<field name="email_from">{{(user.email)}}</field>
<field name="email_to">{{object.employee_id.private_email}}</field>
<field name="subject">Ref {{object.number}}</field>
<field name="auto_delete" eval="True"/>
<field name="body_html"><![CDATA[
<p>Hi,</p>
<p>Here by attaching payslip details of this month</p>
]]>
</field>
<field name="report_template"
ref="hr_payroll_community.payslip_details_report"/>
<field name="report_name">{{(object.number or '').replace('/','_')}}
</field>
</record>
</data>
</odoo>

7
hr_payslip_monthly_report/doc/RELEASE_NOTES.md

@ -0,0 +1,7 @@
## Module <hr_payslip_monthly_report>
#### 06.12.2023
#### Version 16.0.1.0.0
#### ADD
- Initial commit for Payroll Advanced Features

22
hr_payslip_monthly_report/models/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author:Jumana Haseen (odoo@cybrosys.com)
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# 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 (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import hr_payslip
from . import res_config_settings

80
hr_payslip_monthly_report/models/hr_payslip.py

@ -0,0 +1,80 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Jumana Haseen (odoo@cybrosys.com)
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# 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 (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
import logging
from odoo import models, _
_logger = logging.getLogger(__name__)
class HrPayslip(models.Model):
"""This class inherits 'hr.payslip' model and execute
certain functions"""
_inherit = 'hr.payslip'
def action_payslip_done(self):
"""Checking auto email option is set. If set email containing payslip
details will be sent on confirmation"""
res = super(HrPayslip, self).action_payslip_done()
if self.env['ir.config_parameter'].sudo().get_param(
'send_payslip_by_email'):
for payslip in self:
if payslip.employee_id.private_email:
template = self.env.ref(
'hr_payslip_monthly_report.email_template_payslip')
template.sudo().send_mail(payslip.id, force_send=True)
_logger.info("Payslip details for %s send by mail",
payslip.employee_id.name)
return res
def action_payslip_send(self):
"""opens a window to compose an email,
with template message loaded by default"""
self.ensure_one()
try:
template_id = \
self.env['ir.model.data']._xmlid_lookup(
'hr_payslip_monthly_report.email_'
'template_payslip')[2]
except ValueError:
template_id = False
try:
compose_form_id = \
self.env['ir.model.data']._xmlid_lookup('mail.email_compose_'
'message_wizard_form')[2]
except ValueError:
compose_form_id = False
ctx = {
'default_model': 'hr.payslip',
'default_res_id': self.ids[0],
'default_use_template': bool(template_id),
'default_template_id': template_id,
'default_composition_mode': 'comment',
}
return {
'name': _('Compose Email'),
'type': 'ir.actions.act_window',
'view_mode': 'form',
'res_model': 'mail.compose.message',
'views': [(compose_form_id, 'form')],
'view_id': compose_form_id,
'target': 'new',
'context': ctx,
}

49
hr_payslip_monthly_report/models/res_config_settings.py

@ -0,0 +1,49 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author:Jumana Haseen (odoo@cybrosys.com)
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# 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 (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models, api
class ResConfigSettings(models.TransientModel):
"""This class inherits res.config.settings model and execute
certain functions"""
_inherit = 'res.config.settings'
send_payslip_by_email = fields.Boolean(string="Automatic Send Payslip "
"By Mail", help="send "
"payslip by"
" email")
@api.model
def get_values(self):
"""This function retrieves configuration settings values"""
res = super(ResConfigSettings, self).get_values()
send_payslip_by_email = self.env[
'ir.config_parameter'].sudo().get_param('send_payslip_by_email',
default=False)
res.update(
send_payslip_by_email=send_payslip_by_email)
return res
def set_values(self):
"""This function is used to set or update configuration values"""
super(ResConfigSettings, self).set_values()
self.env['ir.config_parameter'].sudo().set_param("send_payslip_"
"by_email",
self.send_payslip_by_email)

21
hr_payslip_monthly_report/report/__init__.py

@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Jumana Haseen (odoo@cybrosys.com)
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# 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 (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import hr_payroll_report_view

112
hr_payslip_monthly_report/report/hr_payroll_report_view.py

@ -0,0 +1,112 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Jumana Haseen (odoo@cybrosys.com)
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# 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 (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models, tools
from datetime import date
import time
from calendar import monthrange
class PayrollReportView(models.Model):
"""Create a model 'hr.payroll.report.view' with details"""
_name = 'hr.payroll.report.view'
_description = "Hr Payroll Report view"
_auto = False
date = date.today()
month = monthrange(date.year, date.month)
start_date = fields.Date(string="Start Date",
default=time.strftime('%Y-%m-01'), invisible=True,
help="Mention the start date")
end_date = fields.Date(string="End Date",
default=time.strftime('%Y-%m-01'), invisible=True,
help="Mention the end date")
name = fields.Many2one('hr.employee', string='Employee',
help="Nane of the employee")
date_from = fields.Date(string='From', help="Mention the from date")
date_to = fields.Date(string='To', help="Mention the to date")
state = fields.Selection([('draft', 'Draft'),
('verify', 'Waiting'), ('done', 'Done'),
('cancel', 'Rejected')],
string='Status', help="States regarding the report")
job_id = fields.Many2one('hr.job', string='Job Title',
help="Job title of the person")
company_id = fields.Many2one('res.company', string='Company',
help="Company of the person")
department_id = fields.Many2one('hr.department',
string='Department',
help="Company of the person")
rule_name_id = fields.Many2one('hr.salary.rule.category',
string="Rule Category",
help="Mention the rule category")
rule_amount = fields.Float(string="Amount", help="Mention the amount")
struct_id = fields.Many2one('hr.payroll.structure',
string="Salary Structure",
help="Give the corresponding salary structure")
rule_id = fields.Many2one('hr.salary.rule',
string="Salary Rule", help="Select the "
"salary rule")
def _select(self):
""" This function returns a SQL query string. This query string selects
various columns from different database tables using SQL syntax."""
select_str = """
min(psl.id),ps.id,ps.number,emp.id as name,dp.id as department_id,
jb.id as job_id,cmp.id as company_id,ps.date_from, ps.date_to,
ps.state as state ,rl.id as rule_name_id,
psl.total as rule_amount,ps.struct_id as
struct_id,rlu.id as rule_id"""
return select_str
def _from(self):
""" This function returns a SQL query string. This query string selects
various columns from different database tables and specifies the source
tables and the necessary join conditions for a SQL query"""
from_str = """
hr_payslip_line psl
join hr_payslip ps on ps.id=psl.slip_id
join hr_salary_rule rlu on rlu.id = psl.salary_rule_id
join hr_employee emp on ps.employee_id=emp.id
join hr_salary_rule_category rl on rl.id = psl.category_id
left join hr_department dp on emp.department_id=dp.id
left join hr_job jb on emp.job_id=jb.id
join res_company cmp on cmp.id=ps.company_id
"""
return from_str
def _group_by(self):
"""This code defines a method named _group_by that returns a string
representing a SQL GROUP BY clause. This clause is used in SQL queries
to group the results by specific columns."""
group_by_str = """group by ps.number,ps.id,emp.id,dp.id,jb.id,
cmp.id,ps.date_from,ps.date_to,ps.state,
psl.total,psl.name,psl.category_id,rl.id,rlu.id"""
return group_by_str
def init(self):
""" This method appears to be related to database views and is used
to create or replace a database view."""
tools.drop_view_if_exists(self.env.cr, self._table)
self.env.cr.execute("""CREATE or REPLACE VIEW %s as ( SELECT
%s
FROM %s
%s
)""" % (self._table, self._select(), self._from(),
self._group_by()))

79
hr_payslip_monthly_report/report/hr_payroll_report_view_views.xml

@ -0,0 +1,79 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--Hr payroll report pivot view-->
<record id="hr_payroll_report_view_pivot" model="ir.ui.view">
<field name="name">hr.payroll.report.view.pivot</field>
<field name="model">hr.payroll.report.view</field>
<field name="arch" type="xml">
<pivot string="Payslip Analysis">
<field name="name" type="row"/>
<field name="date_from" interval="month" type="col"/>
<field name="rule_amount" type="measure"/>
</pivot>
</field>
</record>
<!-- Hr payroll report graph view-->
<record id="hr_payroll_report_view_graph" model="ir.ui.view">
<field name="name">hr.payroll.report.view.graph</field>
<field name="model">hr.payroll.report.view</field>
<field name="arch" type="xml">
<graph string="Payslip Analysis">
<field name="date_from" type="row"/>
<field name="rule_amount" type="measure"/>
</graph>
</field>
</record>
<!-- Hr payroll report search view-->
<record id="hr_payroll_report_view_search" model="ir.ui.view">
<field name="name">hr.payroll.report.view.search</field>
<field name="model">hr.payroll.report.view</field>
<field name="arch" type="xml">
<search string="Payslip Analysis">
<field name="name"/>
<field name="date_from"/>
<field name="company_id" groups="base.group_multi_company"/>
<field name="start_date" invisible="1"/>
<field name="end_date" invisible="1"/>
<filter string="This Month" name="thismonth" domain="[('date_from','&gt;=',time.strftime('%%Y-%%m-01'))]"/>
<filter string="This Year" name="year" domain="[('date_from','&lt;=', time.strftime('%%Y-12-31')),('date_from','&gt;=',time.strftime('%%Y-01-01')),('date_to','&lt;=', time.strftime('%%Y-12-31')),('date_to','&gt;=',time.strftime('%%Y-01-01'))]"/>
<filter name="Done" string="Done" domain="[('state','=', 'done')]"/>
<filter name="Draft" string="Draft" domain="[('state','=','draft')]"/>
<separator/>
<field name="department_id"/>
<group expand="1" string="Group By">
<filter string="Employee" name="Employee" context="{'group_by':'name'}"/>
<filter string="Job" name="job" context="{'group_by':'job_id'}"/>
<filter string="Department" name="department" context="{'group_by':'department_id'}"/>
<filter name="status" string="Status" context="{'group_by':'state'}"/>
<filter string="Company" name="company" groups="base.group_multi_company" context="{'group_by':'company_id'}"/>
</group>
</search>
</field>
</record>
<!-- Action for hr payroll report-->
<record id="hr_payslip_report_view_action" model="ir.actions.act_window">
<field name="name">Hr Payroll Report View Action</field>
<field name="res_model">hr.payroll.report.view</field>
<field name="view_mode">pivot,graph</field>
<field name="context">{'search_default_year':1}</field>
<field name="help">This report helps in payroll analysis. This
helps you to check your pay slips and sorting it out from
different group
criteria (Employee, Job title, Department, Company,
Pay slip etc.).</field>
</record>
<!-- Menu for hr payroll report-->
<menuitem
id="hr_payslip_report_view_menu_root"
name="Reports"
parent="hr_payroll_community.menu_hr_payroll_community_root"
groups="hr_payroll_community.group_hr_payroll_community_user"
sequence="45"/>
<menuitem
id="hr_payslip_view_report_view_menu_action"
name="Payslip Report"
parent="hr_payslip_report_view_menu_root"
action="hr_payslip_report_view_action"
groups="hr_payroll_community.group_hr_payroll_community_user"
sequence="10"/>
</odoo>

3
hr_payslip_monthly_report/security/ir.model.access.csv

@ -0,0 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_hr_payslip_monthly_report_manager,hr.payroll.report.view,hr_payslip_monthly_report.model_hr_payroll_report_view,hr_payroll_community.group_hr_payroll_community_user,1,1,1,1
access_group_user,Access User,model_payslip_confirm,hr_payroll_community.group_hr_payroll_community_user,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_hr_payslip_monthly_report_manager hr.payroll.report.view hr_payslip_monthly_report.model_hr_payroll_report_view hr_payroll_community.group_hr_payroll_community_user 1 1 1 1
3 access_group_user Access User model_payslip_confirm hr_payroll_community.group_hr_payroll_community_user 1 1 1 1

BIN
hr_payslip_monthly_report/static/description/assets/icons/check.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
hr_payslip_monthly_report/static/description/assets/icons/chevron.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
hr_payslip_monthly_report/static/description/assets/icons/cogs.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
hr_payslip_monthly_report/static/description/assets/icons/consultation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
hr_payslip_monthly_report/static/description/assets/icons/ecom-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

BIN
hr_payslip_monthly_report/static/description/assets/icons/education-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
hr_payslip_monthly_report/static/description/assets/icons/hotel-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

BIN
hr_payslip_monthly_report/static/description/assets/icons/license.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
hr_payslip_monthly_report/static/description/assets/icons/lifebuoy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
hr_payslip_monthly_report/static/description/assets/icons/manufacturing-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
hr_payslip_monthly_report/static/description/assets/icons/pos-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

BIN
hr_payslip_monthly_report/static/description/assets/icons/puzzle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

BIN
hr_payslip_monthly_report/static/description/assets/icons/restaurant-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

BIN
hr_payslip_monthly_report/static/description/assets/icons/service-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

BIN
hr_payslip_monthly_report/static/description/assets/icons/trading-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

BIN
hr_payslip_monthly_report/static/description/assets/icons/training.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

BIN
hr_payslip_monthly_report/static/description/assets/icons/update.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
hr_payslip_monthly_report/static/description/assets/icons/user.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

BIN
hr_payslip_monthly_report/static/description/assets/icons/wrench.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
hr_payslip_monthly_report/static/description/assets/misc/categories.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
hr_payslip_monthly_report/static/description/assets/misc/check-box.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
hr_payslip_monthly_report/static/description/assets/misc/compass.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
hr_payslip_monthly_report/static/description/assets/misc/corporate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
hr_payslip_monthly_report/static/description/assets/misc/customer-support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
hr_payslip_monthly_report/static/description/assets/misc/cybrosys-logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
hr_payslip_monthly_report/static/description/assets/misc/features.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

BIN
hr_payslip_monthly_report/static/description/assets/misc/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
hr_payslip_monthly_report/static/description/assets/misc/pictures.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
hr_payslip_monthly_report/static/description/assets/misc/pie-chart.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
hr_payslip_monthly_report/static/description/assets/misc/right-arrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

BIN
hr_payslip_monthly_report/static/description/assets/misc/star.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
hr_payslip_monthly_report/static/description/assets/misc/support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
hr_payslip_monthly_report/static/description/assets/misc/whatsapp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
hr_payslip_monthly_report/static/description/assets/modules/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
hr_payslip_monthly_report/static/description/assets/modules/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
hr_payslip_monthly_report/static/description/assets/modules/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
hr_payslip_monthly_report/static/description/assets/modules/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
hr_payslip_monthly_report/static/description/assets/modules/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

BIN
hr_payslip_monthly_report/static/description/assets/modules/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

BIN
hr_payslip_monthly_report/static/description/assets/screenshots/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
hr_payslip_monthly_report/static/description/assets/screenshots/10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 KiB

BIN
hr_payslip_monthly_report/static/description/assets/screenshots/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

BIN
hr_payslip_monthly_report/static/description/assets/screenshots/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

BIN
hr_payslip_monthly_report/static/description/assets/screenshots/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

BIN
hr_payslip_monthly_report/static/description/assets/screenshots/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

BIN
hr_payslip_monthly_report/static/description/assets/screenshots/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

BIN
hr_payslip_monthly_report/static/description/assets/screenshots/7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
hr_payslip_monthly_report/static/description/assets/screenshots/8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
hr_payslip_monthly_report/static/description/assets/screenshots/9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 KiB

BIN
hr_payslip_monthly_report/static/description/assets/screenshots/hero.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 KiB

BIN
hr_payslip_monthly_report/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

BIN
hr_payslip_monthly_report/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

628
hr_payslip_monthly_report/static/description/index.html

@ -0,0 +1,628 @@
<div style="background-color: #714B67; height: 810px; width: 100%; padding: 15px; position: relative;">
<!-- TITLE BAR -->
<div class="d-flex align-items-center justify-content-between"
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;">
<img src="assets/misc/cybrosys-logo.png" width="42" height="42" style="width: 42px; height: 42px;" />
<div>
<div
style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Community
</div>
</div>
</div>
<div class="container" style="padding: 4rem 1.5rem !important">
<div class="row" style="height: 900px !important;">
<div class="col-sm-12 col-md-12 col-lg-12"
style="padding: 4rem 1rem !important; background-color: #714B67 !important; height: 600px !important; border-radius: 20px !important;">
<h1
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #FFFFFF !important; font-size: 3.5rem !important; text-align: center !important;">
Payroll Advanced Features</h1>
<p
style="font-family: 'Montserrat', sans-serif !important; font-weight: 300 !important; color: #FFFFFF !important; font-size: 1.4rem !important; text-align: center !important;">
Payroll Advanced Features For Odoo 16 Community
</p>
<img src="./assets/screenshots/hero.gif" class="img-responsive" width="100%" height="auto" />
</div>
</div>
</div>
<div class="row">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin-bottom: 2rem !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-compass mr-2"></i>Explore this module
</h2>
</div>
<div class="col-md-6">
<a href="#overview" style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Overview</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
Learn more about this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div class="col-md-6">
<a href="#features" style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Features</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
View features of this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div class="col-md-6">
<a href="#screenshots" style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Screenshots</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
See key screenshots of this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
</div>
<div class="row" id="overview">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-pie-chart mr-2"></i>Overview
</h2>
</div>
<div class="col-mg-12 pl-3">
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important; line-height: 30px !important;">
This module includes Payroll-Payslip reporting, Email sending payslip configure and automatic sending of payslip
details to employees during confirmation and Mass confirm on Payslips.
</p>
</div>
</div>
<div class="row" id="features">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-star mr-2"></i>Features
</h2>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Payroll-Payslip Reporting</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Payroll-Payslip reporting options.</p>
</div>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Automatic Mail During Confirmation of Payslip</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Automatic Payslip Mail to an employee during the confirmation of payslip.</p>
</div>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Mass Confirm Payslip</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Option to Mass confirm Payslips.</p>
</div>
</div>
</div>
<div class="row" id="screenshots">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-image mr-2"></i>Screenshots
</h2>
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Employee Payslips</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Select the Employee, Salary Structure, Payslip Name
automatically comes for the selected Employee.</p>
<img src="assets/screenshots/1.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Employee Contract</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Select the contract from the existing contracts of Employee or
Create and edit. There comes a window to create contract,
specify the Contract End Date, Salary Structure, Contract Type
and HR Responsible. </p>
<img src="assets/screenshots/2.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Worked Days & Inputs</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
After save and close,Inside the page Worked Days & Inputs we get the Worked days details.</p>
<img src="assets/screenshots/3.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
COMPUTE SHEET Button</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">After clicking COMPUTE SHEET Button we get details
of salary computation inside page Salary Computation.
</p>
<img src="assets/screenshots/4.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
SEND MAIL Button</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">Option to Send mail on clicking SEND MAIL Button,
we can send the details regarding payslip to corresponding employee
by configuring mails in draft state.
</p>
<img src="assets/screenshots/5.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
CONFIRM/CANCEL PAYSLIP</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
After confirming the payslip it goes to posted state,or we can cancel it.</p>
<img src="assets/screenshots/6.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Payroll Email Notification</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
By configuring emails and enabling Payroll Email Notification,
automatically send Email with payslip details on the confirmation on Payslip.</p>
<img src="assets/screenshots/7.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Payslip Report</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Generate payslip report.</p>
<img src="assets/screenshots/8.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Mass Confirmation of Payslip</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Option to Mass confirm Payslip for Employee Payslips to set the state from draft to done state </p>
<img src="assets/screenshots/9.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
After Mass confirm the state changed from draft to done state</p>
<img src="assets/screenshots/10.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
</div>
<!-- SUGGESTED PRODUCTS -->
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center"
style="text-align: center; padding: 2.5rem 1rem !important;">
<h2 style="color: #212529 !important;">Suggested Products</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner">
<div class="carousel-item active" style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/ohrms_salary_advance/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/1.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/oh_appraisal/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/2.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/hr_employee_updation/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/3.png">
</div>
</a>
</div>
</div>
<div class="carousel-item" style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/hrms_dashboard/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/4.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/13.0/hr_employee_shift/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/5.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/ohrms_salary_advance/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/6.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev"
style="left:-25px;width: 35px;color: #000;"> <span class="carousel-control-prev-icon"><i
class="fa fa-chevron-left" style="font-size:24px"></i></span> </a> <a
class="carousel-control-next" href="#demo1" data-slide="next"
style="right:-25px;width: 35px;color: #000;">
<span class="carousel-control-next-icon"><i class="fa fa-chevron-right"
style="font-size:24px"></i></span>
</a>
</div>
</div>
</div>
<!-- END OF SUGGESTED PRODUCTS -->
<!-- OUR SERVICES -->
<section class="container" style="margin-top: 6rem !important;">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Our Services</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/cogs.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Customization</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/wrench.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/lifebuoy.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Support</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/user.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Hire
Odoo
Developer</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/puzzle.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Integration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/update.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Migration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/consultation.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Consultancy</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/training.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/license.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Licensing Consultancy</h6>
</div>
</div>
</section>
<!-- END OF END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<section class="container" style="margin-top: 6rem !important;">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Our Industries</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/trading-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Trading
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easily procure
and
sell your products</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/pos-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
POS
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easy
configuration
and convivial experience</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/education-black.png" class="img-responsive mb-3" height="48px"
width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Education
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
A platform for
educational management</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/manufacturing-black.png" class="img-responsive mb-3" height="48px"
width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Manufacturing
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Plan, track and
schedule your operations</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/ecom-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
E-commerce &amp; Website
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Mobile
friendly,
awe-inspiring product pages</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/service-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Service Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Keep track of
services and invoice</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/restaurant-black.png" class="img-responsive mb-3" height="48px"
width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Restaurant
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Run your bar or
restaurant methodically</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/hotel-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Hotel Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
An
all-inclusive
hotel management application</p>
</div>
</div>
</div>
</section>
<!-- END OF OUR INDUSTRIES -->
<!-- FOOTER -->
<!-- Footer Section -->
<section class="container" style="margin: 5rem auto 2rem;">
<div class="row" style="max-width:1540px;">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Need Help?</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
</div>
</div>
<!-- Contact Cards -->
<div class="row d-flex justify-content-center align-items-center"
style="max-width:1540px; margin: 0 auto 2rem auto;">
<div class="col-lg-12" style="padding: 0rem 3rem 2rem; border-radius: 10px; margin-right: 3rem; ">
<div class="row mt-4">
<div class="col-lg-4">
<a href="mailto:odoo@cybrosys.com" target="_blank" class="btn btn-block mb-2 deep_hover"
style="text-decoration: none; background-color: #4d4d4d; color: #FFF; border-radius: 4px;"><i
class="fa fa-envelope mr-2"></i>odoo@cybrosys.com</a>
</div>
<div class="col-lg-4">
<a href="https://api.whatsapp.com/send?phone=918606827707" target="_blank"
class="btn btn-block mb-2 deep_hover"
style="text-decoration: none; background-color: #25D366; color: #FFF; border-radius: 4px;"><i
class="fa fa-whatsapp mr-2"></i>WhatsApp</a>
</div>
<div class="col-lg-4">
<a href="mailto:info@cybrosys.com" target="_blank" class="btn btn-block deep_hover"
style="text-decoration: none; background-color: #4d4d4d; color: #FFF; border-radius: 4px;"><i
class="fa fa-envelope mr-2"></i>info@cybrosys.com</a>
</div>
</div>
</div>
</div>
<!-- End of Contact Cards -->
</section>
<!-- Footer -->
<section class="oe_container" style="padding: 2rem 3rem 1rem;">
<div class="row" style="max-width:1540px; margin: 0 auto; margin-right: 3rem; ">
<!-- Logo -->
<div class="col-lg-12 d-flex justify-content-center align-items-center" style="margin-top: 3rem;">
<img src="https://www.cybrosys.com/images/logo.png" width="200px" height="auto" />
</div>
<!-- End of Logo -->
<div class="col-lg-12">
<hr
style="margin-top: 3rem;background: linear-gradient(90deg, rgba(2,0,36,0) 0%, rgba(229,229,229,1) 33%, rgba(229,229,229,1) 58%, rgba(0,212,255,0) 100%); height: 2px; border-style: none;">
<!-- End of Footer Section -->
</div>
</div>
</section>
<!-- END OF FOOTER -->
</div>

17
hr_payslip_monthly_report/views/hr_payslip_views.xml

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--Inherited form view of hr payslip for sending mails-->
<record id="view_hr_payslip_form" model="ir.ui.view">
<field name="name">hr.payslip.view.form.inherit.hr.payslip.monthly.report</field>
<field name="model">hr.payslip</field>
<field name="inherit_id" ref="hr_payroll_community.view_hr_payslip_form"/>
<field name="arch" type="xml">
<xpath expr='//button[@name="compute_sheet"]' position='after'>
<button string="Send Mail"
name="action_payslip_send" attrs="{'invisible':[('state','!=','draft')]}"
type="object"
class="oe_highlight"/>
</xpath>
</field>
</record>
</odoo>

31
hr_payslip_monthly_report/views/res_config_settings_views.xml

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Inheriting res.config.settings to add hr payslip report details-->
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.hr.payslip.monthly.report</field>
<field name="model">res.config.settings</field>
<field name="priority" eval="45"/>
<field name="inherit_id" ref="base.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@data-key='hr_payroll_community']/div[@id='hr_payroll_localization']" position="after">
<div class="row mt16 o_settings_container"
id="hr_payroll_mail"
attrs="{'invisible': ['|', '|', ('module_l10n_fr_hr_payroll', '=', True),
('module_l10n_be_hr_payroll', '=', True), ('module_l10n_in_hr_payroll', '=', True)]}">
<div class="col-lg-6 col-12 o_setting_box">
<div class="o_setting_left_pane">
<field name="send_payslip_by_email"/>
</div>
<div class="o_setting_right_pane">
<label for="send_payslip_by_email" string="Payroll Email Notification"/>
<div class="text-muted">
Automatically send Email with Payslip details
On Confirmation of Payslip.
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</odoo>

22
hr_payslip_monthly_report/wizard/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Jumana Haseen (odoo@cybrosys.com)
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# 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 (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import payslip_confirm

39
hr_payslip_monthly_report/wizard/payslip_confirm.py

@ -0,0 +1,39 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author:Jumana Haseen (odoo@cybrosys.com)
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# 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 (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import models
class MassConfirmPayslip(models.TransientModel):
"""This class creates a model 'payslip.confirm' and
execute mass confirm of payslip"""
_name = 'payslip.confirm'
_description = 'Mass Confirm Payslip'
def action_confirm_payslip(self):
"""Mass Confirmation of Payslip"""
context = self._context
record_ids = context.get('active_ids', [])
for record in record_ids:
payslip_id = self.env['hr.payslip'].search([('id', '=', record ),
('state', 'not in',
['cancel', 'done'])])
if payslip_id:
payslip_id.action_payslip_done()

30
hr_payslip_monthly_report/wizard/payslip_confirm_views.xml

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Form view of confirming Payslip -->
<record id="payslip_confirm_view_form" model="ir.ui.view">
<field name="name">payslip.confirm.view.form</field>
<field name="model">payslip.confirm</field>
<field name="arch" type="xml">
<form string="Confirm Payslip">
<p class="oe_grey">
Do you want to confirm these Payslips?.
</p>
<footer>
<button name="action_confirm_payslip"
string="Confirm Payslip" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel" />
</footer>
</form>
</field>
</record>
<!--Action for confirming payslips-->
<record id="payslip_confirm_action" model="ir.actions.act_window">
<field name="name">Confirm Payslip</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">payslip.confirm</field>
<field name="view_mode">form</field>
<field name="target">new</field>
<field name="binding_model_id" ref="hr_payroll_community.model_hr_payslip" />
<field name="binding_view_types">list</field>
</record>
</odoo>
Loading…
Cancel
Save