Skip to content
Permalink
Browse files

🚑 incorrect attribute name

  • Loading branch information...
KolushovAlexandr authored and Ommo73 committed Mar 7, 2019
1 parent 4f7a483 commit 45a2349621482eebeedcbee4bb2e77b93c3cdfc0
@@ -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",
@@ -1,3 +1,8 @@
`1.0.1`
-------

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

`1.0.0`
-------

@@ -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))),
})

0 comments on commit 45a2349

Please sign in to comment.
You can’t perform that action at this time.