c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #30986
[Bug 716376] Re: Hr timesheet has default state is new from there not able to got to next state
Hello,
I confirm this issue.
It works fine if the user has the group "HR User".
But if not, the timesheet will stay in "new" state and never go to "draft" state.
The default value for the timesheet is "new".
The only transition from new to draft is :
<record id="t0" model="workflow.transition">
<field name="act_from" ref="act_new"/>
<field name="act_to" ref="act_draft"/>
<field name="group_id" ref="base.group_hr_user"/>
</record>
So your timesheet will never be "draft" if you are not in the hr user group.
The "Confirm" button is not displayed on the "new" timesheet.
Moreover, the wizard "My current timesheet" search only for "draft" timesheets (see below), so for a user without "HR User", the wizard will return a new timesheet instead of his one.
ids = ts.search(cr, uid, [('user_id','=',uid),('state','=','draft'),('date_from','<=',time.strftime('%Y-%m-%d')), ('date_to','>=',time.strftime('%Y-%m-%d'))], context=context)
We need to remove the "new" status or remove the group on the
transition.
Thanks
** Changed in: openobject-addons
Status: Invalid => New
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/716376
Title:
Hr timesheet has default state is new from there not able to got to
next state
Status in OpenERP Modules (addons):
New
Bug description:
Hello
In hr_timesheet_sheet module when u create a new record
for any user default state is new but from here u can see that there
is no button or other way is defined to change the state of the record
.
so might be there is changed in default :set to draft solve the bug
if its not a bug please specify for how to solve this ?
thanking you
pritesh modi
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/716376/+subscriptions
References