I'm sorry, it looks like you are right. I was getting this error because my 
colleague has created an onchange function on invoice date that calls this 
function and than it reports an error.
You can close this bug. I'm sorry for any inconvenience I've caused...

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

_______________________________________________
Mailing list: https://launchpad.net/~openerp-india
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-india
More help   : https://help.launchpad.net/ListHelp

Reply via email to