← Back to team overview

openerp-india team mailing list archive

[Bug 963158] Re: openerp-client 6.1.1 MyTimesheet tries to evaluate an undefined variable

 

** Project changed: openobject-client => openobject-addons

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/963158

Title:
  openerp-client 6.1.1 MyTimesheet tries to evaluate an undefined
  variable

Status in OpenERP Addons (modules):
  New

Bug description:
  I am evaluating the OpenERP client module 6.1.1 and have encountered
  what appears to be a bug.

  I have set up a test company, accounts, users etc.  I have set up a
  project.  Now I am trying to sign into MyTimesheet.

  Menu>Project>Time Tracking>My Timesheet (see screenshot mytimesheet1
  attached)

  In the shell from which I started the client I see the following,
  prior to any interaction with the screen:

  Traceback (most recent call last):
    File "/home/clh/Downloads/openerp-client-6.1-20120321-003525/bin/tools/__init__.py", line 52, in expr_eval
      temp = eval(string, context)
    File "<string>", line 1, in <module>
  NameError: name 'date_current' is not defined
  ERROR:tools.expr_eval:{'date':date_current,'user_id':user_id}
  Traceback (most recent call last):
    File "/home/clh/Downloads/openerp-client-6.1-20120321-003525/bin/tools/__init__.py", line 52, in expr_eval
      temp = eval(string, context)
    File "<string>", line 1, in <module>
  NameError: name 'date_current' is not defined

  
  When I click on "Sign In", an alert pops up with the message:

  ValidateError

  Error occurred while validating the field(s) date_from,date_to: You cannot have 2 timesheets that overlaps !
  Please use the menu 'My Current Timesheet' to avoid this problem.

  (see screenshot mytimesheet2 attached)

  When I click on OK on that alert, the "Date from" and "Date to" fields
  appear in red.

  I want to see if I have two timesheets that overlap, so I exit out of
  the Open Timesheet tab (an alert pops up asking me if I want to save
  the record, I click no)

  Then I go to

  Menu>Project>Timesheet Lines

  where I see there are no lines shown under "Today".  when I uncheck
  the button, I see the one timesheet entry I have made on the 22 of
  December 2011 (I made this yesterday actually but changed the dates).
  See screenshot timesheetlines1 and timesheetlines2

  I see that the sheet is 2011-12-01 - 2012-03-25 which may be causing
  the "overlap" message.  I tried to edit the trailing date but was
  unsuccessful, so I set the status back to draft.

  I then logged out and logged back in again as admin.  I could not set
  the to date on that timesheet but I was able to delete the timesheet
  entry.

  That doesn't make me feel very good because the timesheet entry was
  linked to an invoice.

  I want to emphasize that I am learning this on my own by reading the
  book and experimenting, but the above behaviour doesn't seem quite
  right to me.

  I have tried this with both the official 6.1.1 client and yesterday's
  nightly build.

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