c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #16928
[Bug 722651] [NEW] sale_analytic_plans
Public bug reported:
Hi !!
This bug is caused by a no control on some attributes.
Error Programming :
File "/home/sarac/workspace/webformance/openerp_stable_v6/server/bin/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/sarac/workspace/webformance/openerp_stable_v6/server/bin/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/sarac/workspace/webformance/openerp_stable_v6/server/bin/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/sarac/workspace/webformance/openerp_stable_v6/addons/smile_invoicing_plan/wizard/invoicer.py", line 108, in pre_invoice
invoice_ids = self.pool.get('sale.order').action_invoice_create(cr,uid,sale_order_ds,False, ['confirmed', 'done', 'exception'],False,context)
File "/home/sarac/workspace/webformance/openerp_stable_v6/addons/smile_go_between/sale.py", line 55, in action_invoice_create
ret = super(sale_order,self).action_invoice_create(cr, uid, ids, grouped, states, date_inv, context)
File "/home/sarac/workspace/webformance/openerp_stable_v6/addons/smile_invoicing_plan/sale.py", line 852, in action_invoice_create
created_lines = obj_sale_order_line.invoice_line_create(cr, uid, lines,context)
File "/home/sarac/workspace/webformance/openerp_stable_v6/addons/webformance_account_analytic/sale.py", line 152, in invoice_line_create
create_ids = super(sale_order_line, self).invoice_line_create(cr, uid, ids, context=context)
File "/home/sarac/workspace/webformance/openerp_stable_v6/addons/sale_analytic_plans/sale_analytic_plans.py", line 36, in invoice_line_create
line_obj.write(cr, uid, [create_ids[i]], {'analytics_id': line.analytics_id.id})
IndexError: list index out of range
I hope the patch is a correct one ;)
Faithfully,
Samir RACHEDI
OpenERP Consultant
www.smile.fr
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/722651
Title:
sale_analytic_plans
Status in OpenERP Modules (addons):
New
Bug description:
Hi !!
This bug is caused by a no control on some attributes.
Error Programming :
File "/home/sarac/workspace/webformance/openerp_stable_v6/server/bin/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/sarac/workspace/webformance/openerp_stable_v6/server/bin/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/sarac/workspace/webformance/openerp_stable_v6/server/bin/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/sarac/workspace/webformance/openerp_stable_v6/addons/smile_invoicing_plan/wizard/invoicer.py", line 108, in pre_invoice
invoice_ids = self.pool.get('sale.order').action_invoice_create(cr,uid,sale_order_ds,False, ['confirmed', 'done', 'exception'],False,context)
File "/home/sarac/workspace/webformance/openerp_stable_v6/addons/smile_go_between/sale.py", line 55, in action_invoice_create
ret = super(sale_order,self).action_invoice_create(cr, uid, ids, grouped, states, date_inv, context)
File "/home/sarac/workspace/webformance/openerp_stable_v6/addons/smile_invoicing_plan/sale.py", line 852, in action_invoice_create
created_lines = obj_sale_order_line.invoice_line_create(cr, uid, lines,context)
File "/home/sarac/workspace/webformance/openerp_stable_v6/addons/webformance_account_analytic/sale.py", line 152, in invoice_line_create
create_ids = super(sale_order_line, self).invoice_line_create(cr, uid, ids, context=context)
File "/home/sarac/workspace/webformance/openerp_stable_v6/addons/sale_analytic_plans/sale_analytic_plans.py", line 36, in invoice_line_create
line_obj.write(cr, uid, [create_ids[i]], {'analytics_id': line.analytics_id.id})
IndexError: list index out of range
I hope the patch is a correct one ;)
Faithfully,
Samir RACHEDI
OpenERP Consultant
www.smile.fr
Follow ups
References