Skip to content

Commit

Permalink
🚑 incorrect attribute name
Browse files Browse the repository at this point in the history
  • Loading branch information
KolushovAlexandr authored and Ommo73 committed Mar 21, 2019
1 parent 4f7a483 commit 45a2349
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base_attendance/__manifest__.py
Expand Up @@ -7,7 +7,7 @@
"category": "Extra Tools",
# "live_test_url": "",
"images": [],
"version": "11.0.1.0.0",
"version": "11.0.1.0.1",
"application": False,

"author": "IT-Projects LLC, Kolushov Alexandr",
Expand Down
5 changes: 5 additions & 0 deletions base_attendance/doc/changelog.rst
@@ -1,3 +1,8 @@
`1.0.1`
-------

- **Fix:** Error on error message for incorrect attendance creation

`1.0.0`
-------

Expand Down
2 changes: 1 addition & 1 deletion base_attendance/models/res_attendance.py
Expand Up @@ -99,7 +99,7 @@ def _check_validity(self):
], order='check_in desc', limit=1)
if last_attendance_before_check_out and last_attendance_before_check_in != last_attendance_before_check_out:
raise exceptions.ValidationError(_("Cannot create new attendance record for %(partner_name)s, the partner was already checked in on %(datetime)s") % {
'partner_name': attendance.partner.name,
'partner_name': attendance.partner_id.name,
'datetime': fields.Datetime.to_string(fields.Datetime.context_timestamp(self, fields.Datetime.from_string(last_attendance_before_check_out.check_in))),
})

Expand Down

0 comments on commit 45a2349

Please sign in to comment.