← Back to team overview

openerp-india team mailing list archive

[Bug 949576] Re: Deleting draft invoice generated using "Invoice Tasks Work" generates "options is undefined" error

 

Database snapshot following the creation of the project, task, invoice
and attempted invoice deletion.

** Attachment added: "Database snapshot following the creation of the project, task, invoice and attempted invoice deletion."
   https://bugs.launchpad.net/openobject-addons/+bug/949576/+attachment/2832160/+files/b0rked.sql.xz

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

Title:
  Deleting draft invoice generated using "Invoice Tasks Work" generates
  "options is undefined" error

Status in OpenERP Addons (modules):
  New

Bug description:
  Using OpenERP 6.1-1 with no end-user modifications or custom modules,
  a user is confrunted by an error message in the web client: "options
  is undefined" when attempting to delete a draft invoice constructed
  via the "Invoice Tasks Work" menu item.

  So far I have been able to reproduce this 100% on an Ubuntu Server
  running the Debian package of OpenERP 6.1, and a Gentoo laptop running
  the source release of OpenERP 6.1.  Client is the embedded web client
  of both packages, using the Firefox 10 web browser and Firebug
  extension.

  Steps to reproduce:

  1. At log in screen, select "Manage Databases"
  2. Create the new database.  Options I entered:
  - New Database Name: erptest61
  - Load Demonstration Data: checked
  - Default Language: English (UK)
  - Admin Password: Superuser
  3. Install the following modules:
  - crm
  - account_voucher
  - project
  - account_accountant
  - hr
  - sale
  - hr_timesheet_sheet
  - stock
  - purchase
  - project_gtd
  - project_issue
  - hr_holidays
  - account
  - account_analytic_analysis
  - base_action_rule
  - base_contact
  - edi
  - email_template
  - fetchmail
  - hr_attendance
  - hr_timesheet
  - hr_timesheet_invoice
  - product
  - project_issue_sheet
  - project_long_term
  - project_timesheet
  - web_livechat
  - web_process
  - wiki
  (Unrelated nit; it was really irritating having to install these one by one, and especially irritating when installing a module, it "helpfully" took you straight to that module's dashboard.  An "install ticked items" or "uninstall ticked items" option would be really handy here.)

  During the installation of the accounts module: the defaults were used:
  - Chart of Accounts: Generic Chart Of Accounts
  - Company: Your Company
  - Chart Template: Configurable Account Chart Template
  - Sales Tax(%): 15.00
  - Purchase Tax(%): 15.00

  4. Go to Project → Configuration → Projects and Stages → Projects, and
  create a new project, assign a customer to the project, then save the
  project.

  (Unrelated nit: why *configuration*??  Do we "configure" a new task?
  No, so why "configure" a new project?)

  5. Go to Project → Tasks, and create a new task against that project.
  Start the task, then create some time on the task.

  6. Go to Project → Invoicing → Invoice Tasks Work.  The two work items should appear.
  7. Select both work items.  Create Invoice appears on right.
  8. Click Create Invoice.  A dialogue box appears, I ticked all options (Date, Description and Time Spent).  Click Create Invoices.
  9. The new invoice is created in draft form.

  Now in our current business, the way it normally works is that the
  invoice in its draft form would be presented to the project manager
  for verification (usually on paper; 6.1 presents a barrier here, but
  that's a separate issue).  If there is any issues, task work items may
  need to be changed, and so often it is easier to go in, fix the
  underlying tasks, delete the draft invoice, then create a fresh new
  invoice anew.

  10. Open the draft invoice, then click Delete.  At this point the user
  is presented with an "OpenERP Client Error" announcing that "options
  is undefined".

  The bug seems to only affect invoices created using this mechanism.
  Invoices created directly seem to have no problems.  I spent much of
  yesterday chasing my tail with Firebug trying to track this down with
  little success.  I'll attach some test data, logs and screenshots in a
  moment.

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


References