Make_invoice wizard from SO needs correction

Bug #552455 reported by Stephane Wirtel (OpenERP)
32
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
Unassigned

Bug Description

This unsolved error is becoming a real problem. We've tested in demo and it works fine so we know how it is supposed to work.

To recap :
1. create Sales Order
2. select by checkbox to "Make Invoices" (leave "group invoices" unchecked)
3. creates Draft Invoices out of whichever Sales Orders we selected [#3 is what fails in live system and creates an Application Error]

-----
Traceback (most recent call last):
  File "/mnt/openerp/server/bin/netsvc.py", line 244, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/mnt/openerp/server/bin/netsvc.py", line 73, in __call__
    return getattr(self, method)(*params)
  File "/mnt/openerp/server/bin/service/web_services.py", line 635, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/mnt/openerp/server/bin/service/web_services.py", line 615, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/mnt/openerp/server/bin/wizard/__init__.py", line 177, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/mnt/openerp/server/bin/wizard/__init__.py", line 82, in execute_cr
    res['action'] = result_def['action'](self, cr, uid, data, context)
  File "/mnt/openerp/server/bin/addons/sale/wizard/make_invoice.py", line 49, in _makeInvoices
    order_obj.action_invoice_create(cr, uid, data['ids'], data['form']['grouped'])
  File "/mnt/openerp/server/bin/addons/sale/sale.py", line 403, in action_invoice_create
    created_lines = self.pool.get('sale.order.line').invoice_line_create(cr, uid, lines)
  File "/mnt/openerp/server/bin/addons/account_analytic_plans/account_analytic_plans.py", line 383, in invoice_line_create
    create_ids = super(sale_order_line,self).invoice_line_create(cr, uid, ids, context)
  File "/mnt/openerp/server/bin/addons/account_analytic_default/account_analytic_default.py", line 107, in invoice_line_create
    sale_line_obj = self.browse(cr, uid, ids[0], context)
IndexError: list index out of range

Related branches

Changed in openobject-addons:
milestone: 5.0.9 → 5.0.8
status: New → Confirmed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Fixed by revision 2685 <email address hidden>.
Thanks,

Changed in openobject-addons:
importance: High → Medium
status: Confirmed → Fix Released
Changed in openobject-addons:
status: Fix Released → Confirmed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Recorrected by revision 2727 <email address hidden>.
Thanks.

Changed in openobject-addons:
milestone: 5.0.8 → 5.0.10
status: Confirmed → Fix Released
summary: - list index out of range in account_analytic_default
+ Make_invoice wizard from SO needs correction
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.