Skip to content

Commit

Permalink
Merge 2686794 into e8c2896
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevhe18 committed Feb 21, 2019
2 parents e8c2896 + 2686794 commit d20a437
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
2 changes: 1 addition & 1 deletion hr_attendance_import_from_machine/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# pylint: disable=locally-disabled, manifest-required-author
{
"name": "Import Attendance Data From Machine",
"version": "8.0.1.4.2",
"version": "8.0.1.5.0",
"website": "https://opensynergy-indonesia.com",
"author": "OpenSynergy Indonesia",
"license": "AGPL-3",
Expand Down
17 changes: 2 additions & 15 deletions hr_attendance_import_from_machine/models/hr_attendance_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,12 @@ class HrAttendanceMachine(models.Model):
string="Name",
required=True,
)
date_format = fields.Selection(
date_format = fields.Char(
string="Date Format",
selection=[
("%d/%m/%Y", "dd/mm/yyyy"),
("%m/%d/%Y", "mm/dd/yyyy"),
("%Y/%m/%d", "yyyy/mm/dd"),
("%d-%m-%Y", "dd-mm-yyyy"),
("%m-%d-%Y", "mm-dd-yyyy"),
("%Y-%m-%d", "yyyy-mm-dd")
],
required=True,
)
time_format = fields.Selection(
time_format = fields.Char(
string="Time Format",
selection=[
("%H:%M:%S", "HH:MM:SS"),
("%H:%M", "HH:MM"),
("%H%M", "HHMM")
],
required=True,
)
sign_in_code = fields.Char(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<page string="CSV Details">
<group>
<group string="Date/Time Format">
<field name="date_format"/>
<field name="time_format"/>
<field name="date_format" placeholder="e.g %d/%m/%Y"/>
<field name="time_format" placeholder="e.g %H:%M:%S"/>
</group>
<group string="Sign In/Out Code">
<field name="sign_in_code"/>
Expand Down

0 comments on commit d20a437

Please sign in to comment.