← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 781559] [NEW] timesheet must be saved before adding lines

 

Public bug reported:

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

** Affects: openobject-addons
     Importance: Undecided
         Status: 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/781559

Title:
  timesheet must be saved before adding lines

Status in OpenERP Modules (addons):
  New

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


Follow ups

References