Public bug reported:
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!
** Affects: openobject-addons
Importance: Undecided
Status: New
--
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):
New
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