Hello Milan,

This is not possible from any of the case because when you confirm the
invoice like it will call the workflow. So when you press any of the
button its first save the record. So there is no possibility that ids
will be blank.

Thank you!

** Changed in: openobject-addons
       Status: Incomplete => Invalid

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