Katherine Zaoral (Vauxoo) has proposed merging lp:~vauxoo/openerp-hr/7.0-dev-hr_payroll_manager_groups into lp:openerp-hr with lp:~openerp-community/openerp-hr/7.0-modules-from-addons-hr-ng as a prerequisite.
Requested reviews: Nhomar - Vauxoo (nhomar) Luis Torres - http://www.vauxoo.com (luis-cleto-) Katherine Zaoral (Vauxoo) (kathy-zaoral) For more details, see: https://code.launchpad.net/~vauxoo/openerp-hr/7.0-dev-hr_payroll_manager_groups/+merge/194745 New Module create an new group for payroll managers -- https://code.launchpad.net/~vauxoo/openerp-hr/7.0-dev-hr_payroll_manager_groups/+merge/194745 Your team OpenERP Community is subscribed to branch lp:~openerp-community/openerp-hr/7.0-modules-from-addons-hr-ng.
=== added directory 'hr_payroll_manager_group' === added file 'hr_payroll_manager_group/__init__.py' --- hr_payroll_manager_group/__init__.py 1970-01-01 00:00:00 +0000 +++ hr_payroll_manager_group/__init__.py 2013-11-11 19:45:32 +0000 @@ -0,0 +1,27 @@ +#!/usr/bin/python +# -*- encoding: utf-8 -*- +############################################################################### +# Module Writen to OpenERP, Open Source Management Solution +# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>). +# All Rights Reserved +############# Credits ######################################################### +# Coded by: Katherine Zaoral <[email protected]> +# Planified by: Humberto Arocha <[email protected]>, +# Katherine Zaoral <[email protected]> +# Audited by: Humberto Arocha <[email protected]> +############################################################################### +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License 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/>. +############################################################################### +import model +import wizard === added file 'hr_payroll_manager_group/__openerp__.py' --- hr_payroll_manager_group/__openerp__.py 1970-01-01 00:00:00 +0000 +++ hr_payroll_manager_group/__openerp__.py 2013-11-11 19:45:32 +0000 @@ -0,0 +1,117 @@ +#!/usr/bin/python +# -*- encoding: utf-8 -*- +############################################################################### +# Module Writen to OpenERP, Open Source Management Solution +# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>). +# All Rights Reserved +############# Credits ######################################################### +# Coded by: Katherine Zaoral <[email protected]> +# Planified by: Humberto Arocha <[email protected]>, +# Katherine Zaoral <[email protected]> +# Audited by: Humberto Arocha <[email protected]> +############################################################################### +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License 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': 'HR Payroll Manager Group', + 'version': '1.0', + 'author': 'Vauxoo', + 'website': 'http://www.vauxoo.com/', + 'category': 'Human Resources', + 'description': ''' +HR Payroll Manager Group +======================== + +Description +----------- + +In OpenERP coventional ``hr_payroll`` module the payrolls permissions are +enable when we set, for every departament created, an employee with ``HR +Manager`` permissions (by setting the related user to the corresping +``Manager`` on the HR aplication). This permissions will grant to the user +the capacity to manage their departament employees payrolls and their own +payrolls. + +In spite of create a more real concept for the employees that can manage the +payrolls we created a new module that add the concept of a group of HR +Managers. This changes allows to this group of employees no matter what +departament they belongs to manage the payrolls of every employe in the +company. This group need to be set manually for the user and preferably +the members will be employees that belongs to the HR deparment of youre +company. + +Technical Information +--------------------- + +We add a new permission group named HR Payroll Manager that extend for +HR Manager and a new ``ir.rule`` that leads to does not needed the +department exclusiveness clause. + +Minimal Configurations +---------------------- + +You need to configure one o more users like Humnan Resource Application +Payroll Managers. Is recomended that this users belongs to employees of +the Human Resource department in youre company. + +.. note:: How to se the user permission for the given + ``Human Resource``Application? Go to ``Settings Menu > Users Section at + sidebar > Users Menu > Select the user > Access Right tab at the form + view > Application Section > Human Resources field`` and select the + permissions (group) to set youre user. + +Module justification +-------------------- + +The HR Payroll convectional process works in a way we differ. Here is an +explanation about the process: + +- If a user is set like ``Application > Human Resource > Manager`` then the + user can create and operate over its owns payrrolls only. + +- If a created two departments IT and Managament. If I make Managament + Department parent of IT department a try to set the Managament Manager to + see if this manager applys to over the IT Department (the Child department). + The result was negative. Only First line managers apply over a departament + employees departament. + +- Only the useres how has activated the ``Officer`` or ``Manager`` Aplication + permision are capacble to saw payslips menus. +- An ``HR / Officer`` group user could see the payslips menus but it can not + edit or create payslips because it have not permissions over the HR + Contracts. The only thing this user can do is print its own payslips. +- An ``HR / Manager`` group user can create or edit its owns payslips. +- An ``HR / Manager`` group user that also is a manager of a Departament is + capable of create and edit payslips only for those employees that belongs + to its own department. + + .. note:: For a make a employee a department manager go to ``Human + Resoruce Menu > Configuration Sidebar Section > departments Menu > + Select an Department`` and set the Manager fields with the employee + you want. + + If the ``HR / Manager`` group user is not assigned to a department it wont + be capable to do nothing over other employees. +''', + 'depends': ['base', 'mail', 'hr_payroll'], + 'data': [ + 'security/hr_payrroll_manager_group_security.xml', + 'security/ir.model.access.csv', + ], + 'demo': [], + 'test': [], + 'active': False, + 'installable': True, +} === added directory 'hr_payroll_manager_group/data' === added directory 'hr_payroll_manager_group/demo' === added directory 'hr_payroll_manager_group/doc' === added directory 'hr_payroll_manager_group/doc/images' === added directory 'hr_payroll_manager_group/i18n' === added directory 'hr_payroll_manager_group/model' === added file 'hr_payroll_manager_group/model/__init__.py' --- hr_payroll_manager_group/model/__init__.py 1970-01-01 00:00:00 +0000 +++ hr_payroll_manager_group/model/__init__.py 2013-11-11 19:45:32 +0000 @@ -0,0 +1,26 @@ +#!/usr/bin/python +# -*- encoding: utf-8 -*- +############################################################################### +# Module Writen to OpenERP, Open Source Management Solution +# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>). +# All Rights Reserved +############# Credits ######################################################### +# Coded by: Katherine Zaoral <[email protected]> +# Planified by: Humberto Arocha <[email protected]>, +# Katherine Zaoral <[email protected]> +# Audited by: Humberto Arocha <[email protected]> +############################################################################### +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License 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/>. +############################################################################### +import hr_payroll_manager_group === added file 'hr_payroll_manager_group/model/hr_payroll_manager_group.py' --- hr_payroll_manager_group/model/hr_payroll_manager_group.py 1970-01-01 00:00:00 +0000 +++ hr_payroll_manager_group/model/hr_payroll_manager_group.py 2013-11-11 19:45:32 +0000 @@ -0,0 +1,33 @@ +#!/usr/bin/python +# -*- encoding: utf-8 -*- +############################################################################### +# Module Writen to OpenERP, Open Source Management Solution +# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>). +# All Rights Reserved +############# Credits ######################################################### +# Coded by: Katherine Zaoral <[email protected]> +# Planified by: Humberto Arocha <[email protected]>, Katherine Zaoral <[email protected]> +# Audited by: Katherine Zaoral <[email protected]> +############################################################################### +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License 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/>. +############################################################################### + +from openerp.osv import fields, osv, orm +from openerp.tools.translate import _ +from openerp import tools + + +class hr_payslip(osv.Model): + + _inherit = 'hr.payslip' === added directory 'hr_payroll_manager_group/report' === added directory 'hr_payroll_manager_group/security' === added file 'hr_payroll_manager_group/security/hr_payrroll_manager_group_security.xml' --- hr_payroll_manager_group/security/hr_payrroll_manager_group_security.xml 1970-01-01 00:00:00 +0000 +++ hr_payroll_manager_group/security/hr_payrroll_manager_group_security.xml 2013-11-11 19:45:32 +0000 @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<openerp> +<data noupdate="1"> + + <record id="group_hr_payroll" model="res.groups"> + <field name="name">Payroll Manager</field> + <field name="comment">the user will have an access to the payslips of all employees.</field> + <field name="category_id" ref="base.module_category_human_resources"/> + <field name="implied_ids" eval="[(4, ref('base.group_hr_manager'))]"/> + </record> + + <record id="property_rule_manager_payroll" model="ir.rule"> + <field name="name">Payroll Manager</field> + <field model="ir.model" name="model_id" ref="model_hr_payslip"/> + <field name="domain_force"></field> + <field name="groups" eval="[(4,ref('group_hr_payroll'))]"/> + </record> + +</data> +</openerp> \ No newline at end of file === added file 'hr_payroll_manager_group/security/ir.model.access.csv' --- hr_payroll_manager_group/security/ir.model.access.csv 1970-01-01 00:00:00 +0000 +++ hr_payroll_manager_group/security/ir.model.access.csv 2013-11-11 19:45:32 +0000 @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_hr_payslip,hr.payslip,model_hr_payslip,group_hr_payroll,1,1,1,1 === added directory 'hr_payroll_manager_group/static' === added directory 'hr_payroll_manager_group/static/description' === added file 'hr_payroll_manager_group/static/description/index.html' === added directory 'hr_payroll_manager_group/static/src' === added directory 'hr_payroll_manager_group/static/src/css' === added directory 'hr_payroll_manager_group/static/src/img' === added file 'hr_payroll_manager_group/static/src/img/icon.png' Binary files hr_payroll_manager_group/static/src/img/icon.png 1970-01-01 00:00:00 +0000 and hr_payroll_manager_group/static/src/img/icon.png 2013-11-11 19:45:32 +0000 differ === added directory 'hr_payroll_manager_group/static/src/js' === added directory 'hr_payroll_manager_group/static/src/xml' === added directory 'hr_payroll_manager_group/test' === added directory 'hr_payroll_manager_group/view' === added directory 'hr_payroll_manager_group/wizard' === added file 'hr_payroll_manager_group/wizard/__init__.py' --- hr_payroll_manager_group/wizard/__init__.py 1970-01-01 00:00:00 +0000 +++ hr_payroll_manager_group/wizard/__init__.py 2013-11-11 19:45:32 +0000 @@ -0,0 +1,26 @@ +#!/usr/bin/python +# -*- encoding: utf-8 -*- +############################################################################### +# Module Writen to OpenERP, Open Source Management Solution +# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>). +# All Rights Reserved +############# Credits ######################################################### +# Coded by: Katherine Zaoral <[email protected]> +# Planified by: Humberto Arocha <[email protected]>, +# Katherine Zaoral <[email protected]> +# Audited by: Humberto Arocha <[email protected]> +############################################################################### +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License 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/>. +############################################################################### + === added directory 'hr_payroll_manager_group/workflow'
_______________________________________________ Mailing list: https://launchpad.net/~openerp-community Post to : [email protected] Unsubscribe : https://launchpad.net/~openerp-community More help : https://help.launchpad.net/ListHelp

