[7.0/trunk] hr_timesheet_sheet - It is possible to add a timesheet line to a confirmed or closed timesheet

Bug #1190934 reported by Yannick Vaucher @ Camptocamp
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Medium
OpenERP R&D Addons Team 3
OpenERP Community Backports (Addons)
Status tracked in 7.0
7.0
Fix Released
Undecided
Unassigned

Bug Description

[7.0] Tested on runbot
(Build 13550)
server (5007)
addons (9237)
web (3974)

[trunk] Tested on runbot
(Build 13534)
server (4900)
addons (8765)
web (3755)

How to reproduce:
Log in with demo user.

1st way to reproduce
Go in Human Ressources -> Time Tracking -> My Current Timesheet
Click on Timesheet button "Timesheet Activities"

Now create a timesheet line for an older and closed timesheet

Expected: Error raised
Result: You can save it

------------------

2nd way to reproduce

Go in Human Ressources -> Time Tracking -> My Current Timesheet
Now Approve you current timesheet

Go in Human Ressources -> Time Tracking -> Timesheet Activities
(Not with button "Timesheet Activities" on timesheet in order to have no default sheet_id on the view)

Create a line for today (which belongs to the timesheet you just approved)

Expected: Error raised
Result: You can save it

Related branches

summary: [7.0] hr_timesheet_sheet - It is possible to add a timesheet line to a
- confirmed timesheet
+ confirmed or closed timesheet
summary: - [7.0] hr_timesheet_sheet - It is possible to add a timesheet line to a
- confirmed or closed timesheet
+ [7.0/trunk] hr_timesheet_sheet - It is possible to add a timesheet line
+ to a confirmed or closed timesheet
description: updated
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
tags: added: hr sheet timesheet
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.