← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 781559] Re: timesheet must be saved before adding lines

 

Hello,

This Issue is already improved with latest trunk code so you can check this with latest trunk.
>From the next minor version this will be available.

If you want this in current stable version then please contact at
support@xxxxxxxxxxx with OPW team.

Thanks

** Changed in: openobject-client
       Status: New => Fix Released

-- 
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/781559

Title:
  timesheet must be saved before adding lines

Status in OpenERP GTK Client:
  Fix Released

Bug description:
  Steps to reproduce:
  - openerp 6 with demo data, hr_timesheet module
  - create a new time sheet (do not click Save yet)
  - add a timesheet line, select an analytic account, description and enter a quantity
  - click save

  Result:
  - Invalid form, correct red fields
  - this is due to the fact that the mandatory fields "General account" and "user" are not populated on the timesheet line

  Expected result:
  - the general account and user fields should be populated automatically

  Alternatively, one can add attrs="{'invisible':[('state','=','new')]}"
  on hr_timesheet_sheet_view.xml//field[@name='timesheet_ids'] to ensure
  that the timesheet lines cannot be added until the timesheet has been
  saved and is in draft state.

  Best regards,

  -sbi


References