Skip to content

Commit

Permalink
Merge 8582221 into 6be3a73
Browse files Browse the repository at this point in the history
  • Loading branch information
andhit-r committed Sep 7, 2018
2 parents 6be3a73 + 8582221 commit 3adc8a2
Show file tree
Hide file tree
Showing 17 changed files with 83 additions and 325 deletions.
1 change: 0 additions & 1 deletion hr_attendance_computation/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"views/res_company_views.xml",
"views/hr_attendance_views.xml",
"views/resource_calendar_views.xml",
"views/resource_calendar_attendance_views.xml",
],
"demo": [
"demo/hr_attendance_demo.xml",
Expand Down

This file was deleted.

1 change: 1 addition & 0 deletions hr_attendance_import_from_machine/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright 2018 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
# pylint: disable=locally-disabled, manifest-required-author
{
"name": "Import Attendance Data From Machine",
"version": "8.0.1.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_csv_detail(self):
}
return dict_field
else:
raise UserError("No CSV Details")
raise UserError(_("No CSV Details"))

@api.multi
def check_employee_code(self, row, column):
Expand Down Expand Up @@ -140,9 +140,8 @@ def check_sign_in_out(
try:
sign_in_out = row[column]
except:
return True,
"Invalid Sign In/Out Column "
"on line %s" % (str(line_num))
err_msg = "Invalid Sign In/Out Column on line %s" % (str(line_num))
return True, err_msg

if sign_in_out == sign_in_code:
return False, 1
Expand Down
1 change: 1 addition & 0 deletions hr_holiday_code/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright 2018 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
# pylint: disable=locally-disabled, manifest-required-author
{
"name": "HR Holiday Code",
"version": "8.0.1.0.0",
Expand Down
2 changes: 2 additions & 0 deletions hr_holiday_code/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def assign_old_sequences(cr, registry):
cr, SUPERUSER_ID, criteria_lvr, order="id")

for lvr in lvr_ids:
# pylint: disable=locally-disabled, sql-injection
cr.execute("UPDATE hr_holidays "
"SET holiday_code = '%s' "
"WHERE id = %d;" %
Expand All @@ -50,6 +51,7 @@ def assign_old_sequences(cr, registry):
cr, SUPERUSER_ID, criteria_alr, order="id")

for alr in alr_ids:
# pylint: disable=locally-disabled, sql-injection
cr.execute("UPDATE hr_holidays "
"SET holiday_code = '%s' "
"WHERE id = %d;" %
Expand Down
3 changes: 2 additions & 1 deletion hr_job_family_modelling/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
# © 2016 OpenSynergy Indonesia
# Copyright 2016 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
# pylint: disable=locally-disabled, manifest-required-author
{
"name": "Job Family Modelling",
"summary": "Grading system that divides jobs into coherent groups "
Expand Down
222 changes: 0 additions & 222 deletions hr_job_family_modelling/views/hr_job_family_level_views.xml

This file was deleted.

2 changes: 1 addition & 1 deletion hr_payslip_import_input/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
from . import wizards
from . import wizards
1 change: 1 addition & 0 deletions hr_payslip_import_input/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright 2017 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
# pylint: disable=locally-disabled, manifest-required-author
{
"name": "Import Other Inputs From Payslip Batches",
"version": "8.0.1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion hr_payslip_import_input/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

from . import hr_payslip_process_line
from . import hr_payslip_imported_line
from . import hr_payroll_run
from . import hr_payroll_run
10 changes: 5 additions & 5 deletions hr_payslip_import_input/tests/test_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ def _create_structure(self):
def _create_contract_1(self):
vals = {
'name': 'Contract 1',
'date_start': time.strftime('%Y-%m')+'-1',
'date_end': time.strftime('%Y')+'-12-31',
'date_start': time.strftime('%Y-%m') + '-1',
'date_end': time.strftime('%Y') + '-12-31',
'wage': 7500000.0,
'type_id': self.type.id,
'employee_id': self.employee_1.id,
Expand All @@ -120,8 +120,8 @@ def _create_contract_1(self):
def _create_contract_2(self):
vals = {
'name': 'Contract 2',
'date_start': time.strftime('%Y-%m')+'-1',
'date_end': time.strftime('%Y')+'-12-31',
'date_start': time.strftime('%Y-%m') + '-1',
'date_end': time.strftime('%Y') + '-12-31',
'wage': 7500000.0,
'type_id': self.type.id,
'employee_id': self.employee_2.id,
Expand Down Expand Up @@ -185,7 +185,7 @@ def test_import_data(self):
}
)

msg_error_2 = ("Not 'employee' or 'code' or 'amount' keys found")
msg_error_2 = ("Not employee or code or amount keys found")
with self.assertRaises(UserError) as error:
wiz.import_data()

Expand Down
2 changes: 1 addition & 1 deletion hr_payslip_import_input/wizards/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Copyright 2017 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import hr_payslip_import_input
from . import hr_payslip_import_input
Loading

0 comments on commit 3adc8a2

Please sign in to comment.