← Back to team overview

openerp-community-reviewer team mailing list archive

[Bug 1303724] [NEW] [7.0] Can't reset a refused vacation request if its amount of days exceeds available days

 

Public bug reported:

To reproduce:

- create 10 days of leave for your employee
- make a vacation request (called A) for your employee for 10 days
- refuse vacation vacation request A
- make another vacation request for your employee for 5 days
- try to reset vacation request A to draft

This fails because the workflow transition to act_confirm is called
automatically and there's not enough vacation left. Note that you also
can't delete this request as unlink only allows that in the draft,
cancel and confirm states.

In trunk, this problem is solved by having the user click a button to
confirm a vacation request.

** Affects: ocb-addons
     Importance: Undecided
         Status: New

** Affects: ocb-addons/7.0
     Importance: Undecided
         Status: New

** Affects: openobject-addons
     Importance: Undecided
         Status: New

** Also affects: ocb-addons
   Importance: Undecided
       Status: New

** Also affects: ocb-addons/7.0
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of OpenERP
Community Backports Team, which is subscribed to OpenERP Community
Backports (Addons).
https://bugs.launchpad.net/bugs/1303724

Title:
  [7.0] Can't reset a refused vacation request if its amount of days
  exceeds available days

Status in OpenERP Community Backports (Addons):
  New
Status in OpenERP Community Backports (Addons) 7.0 series:
  New
Status in OpenERP Addons (modules):
  New

Bug description:
  To reproduce:

  - create 10 days of leave for your employee
  - make a vacation request (called A) for your employee for 10 days
  - refuse vacation vacation request A
  - make another vacation request for your employee for 5 days
  - try to reset vacation request A to draft

  This fails because the workflow transition to act_confirm is called
  automatically and there's not enough vacation left. Note that you also
  can't delete this request as unlink only allows that in the draft,
  cancel and confirm states.

  In trunk, this problem is solved by having the user click a button to
  confirm a vacation request.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-addons/+bug/1303724/+subscriptions


Follow ups

References