clearcorp team mailing list archive
-
clearcorp team
-
Mailing list archive
-
Message #00320
lp:~rr.clearcorp/openerp-ccorp-addons/6.1-hr_payroll_sort_employees into lp:openerp-ccorp-addons
Ronald Rubi has proposed merging lp:~rr.clearcorp/openerp-ccorp-addons/6.1-hr_payroll_sort_employees into lp:openerp-ccorp-addons.
Requested reviews:
CLEARCORP drivers (clearcorp-drivers)
For more details, see:
https://code.launchpad.net/~rr.clearcorp/openerp-ccorp-addons/6.1-hr_payroll_sort_employees/+merge/129519
Add module hr_payroll_sort_employees
--
https://code.launchpad.net/~rr.clearcorp/openerp-ccorp-addons/6.1-hr_payroll_sort_employees/+merge/129519
Your team CLEARCORP development team is subscribed to branch lp:openerp-ccorp-addons.
=== added directory 'hr_payroll_sort_employees'
=== added file 'hr_payroll_sort_employees/__init__.py'
--- hr_payroll_sort_employees/__init__.py 1970-01-01 00:00:00 +0000
+++ hr_payroll_sort_employees/__init__.py 2012-10-12 21:16:22 +0000
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Addons modules by CLEARCORP S.A.
+# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
+#
+# 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_sort_employees
=== added file 'hr_payroll_sort_employees/__openerp__.py'
--- hr_payroll_sort_employees/__openerp__.py 1970-01-01 00:00:00 +0000
+++ hr_payroll_sort_employees/__openerp__.py 2012-10-12 21:16:22 +0000
@@ -0,0 +1,41 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Addons modules by CLEARCORP S.A.
+# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
+#
+# 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 Sort Employees',
+ 'version': '1.0',
+ 'url': 'http://launchpad.net/openerp-ccorp-addons',
+ 'author': 'ClearCorp S.A.',
+ 'website': 'http://clearcorp.co.cr',
+ 'category': 'Human Resources',
+ 'complexity': 'easy',
+ 'description': """This module adds a sequence to the name.
+ """,
+ 'depends': [
+ 'hr_payroll',
+ ],
+ 'init_xml': [],
+ 'demo_xml': [],
+ 'update_xml': [],
+ 'license': 'AGPL-3',
+ 'installable': True,
+ 'active': False,
+}
=== added file 'hr_payroll_sort_employees/hr_payroll_sort_employees.py'
--- hr_payroll_sort_employees/hr_payroll_sort_employees.py 1970-01-01 00:00:00 +0000
+++ hr_payroll_sort_employees/hr_payroll_sort_employees.py 2012-10-12 21:16:22 +0000
@@ -0,0 +1,41 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Addons modules by CLEARCORP S.A.
+# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
+#
+# 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 osv import fields, osv
+
+class hr_employee(osv.osv):
+ _inherit = "hr.employee"
+
+ _columns = {
+ 'name_resource': fields.related('resource_id', 'name', string='Name', type='char', size=128, store=True),
+ }
+
+ _order = 'name_resource asc'
+
+class hr_payslip(osv.osv):
+ _inherit = 'hr.payslip'
+
+ _columns = {
+ 'name_employee': fields.related('employee_id', 'name_resource', string='name_employee', type='char', size=128, store=True),
+ }
+
+ _order= 'name_employee'
+
Follow ups