hr_timesheet_sheet: can not write attendance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP R&D Addons Team 3 |
Bug Description
Exception is thrown when there is no sheet_id linked
def write(self, cr, uid, ids, vals, context=None):
if context is None:
context = {}
res = super(hr_
.
.
.
_check should be adapted like other methods
def _check(self, cr, uid, ids, context=None):
if context is None:
context = {}
if 'sheet_id' in context:
for att in self.browse(cr, uid, ids, context=context):
if att.sheet_id and att.sheet_id.state not in ('draft', 'new'):
return True
Related branches
- Mustufa Rangwala (Open ERP) (community): Approve
- qdp (OpenERP): Pending requested
-
Diff: 29 lines (+6/-0)1 file modifiedhr_timesheet_sheet/hr_timesheet_sheet.py (+6/-0)
Changed in openobject-addons: | |
milestone: | none → 6.1 |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | In Progress → Fix Committed |
Changed in openobject-addons: | |
status: | Fix Committed → Fix Released |
Hello Wolfgang Taferner,
I have checked your issue but all are working fine at my end.
From current behavior you can not modify your time sheet when it's become in confirm and done state.
So In confirm and done state you can not modify your time sheet and when you tried to modify it you
will face this type of error message 'You cannot modify an entry in a confirmed timesheet !'
which is current behavior and it is working fine,.
For your more reference I have attached video so would you please check it and notify us where you faced the problem.
Thanks and waiting for your reply.