← Back to team overview

openerp-india team mailing list archive

[Bug 1241518] Re: date change invoice error

 

Agreed with Sir Amit Parik.
Lets hear a Thought from Milan and then invalidate.
Thanks.

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

Title:
  date change invoice error

Status in OpenERP Addons (modules):
  Invalid

Bug description:
  If you try to enter a date on a new invoice you will get and error: "IndexError: list index out of range"
  This is because of onchange_payment_term_date_invoice function which tries to browse on an invoice which doesn't exist because it is new and is not saved to the database.
  Error is on line 568:
  inv = self.browse(cr, uid, ids[0])

  This will produce an error because ids is an empty list because this
  is a new invoice which has not been saved yet!

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


References