Create timesheet record on a confirmed/done timesheet
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Medium
|
OpenERP R&D Addons Team 1 |
Bug Description
In openerp 7.0
- Create new database (could be without demo)
- Install "project_timesheet"
- Go to human resource/my current timesheet. Save it
- Go to human resource/timesheet activities. Create one with actual date (it is on the timesheet we have just created)
- Go to human resource/my current timesheet. Click on "submit to manager" and then on "approve"
- Go to human resource/timesheet activities Create one with actual date (it is on the timesheet we have just close) No error given. Try to modify any saved record --> Constraint error "Error occurred while validating the field(s) state: You cannot modify an entry in a Confirmed/Done timesheet !"
Conclusion: Constraint error is only working on writing and not on creation.
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → Invalid |
tags: | added: project timesheet |
This is not a bug.
It's a functionality of Timesheet
when You create a Timesheet then it is for current week.
and when You create a Timsheet Activity then Timesheet Activity automatically takes the default Timesheet according to Current Date and Time.
You cab See the attached Sheet in the Form view of Timesheet Activity. Field name is SHEET(which is a read only field and can not be modified).
You got Constraint Error because when You created Second Activity while sheet attached according to current date/time is already approved by you.
try with different date/time You won't get error.