openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #26230
[Bug 1241518] Re: date change invoice error
Hello Milan,
Would you please paste the trace back error , which you got ?
Thanks & waiting for your answer.
** Changed in: openobject-addons
Status: New => Incomplete
--
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):
Incomplete
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