Skip to content

Instantly share code, notes, and snippets.

@lukebranch
Created March 10, 2017 05:06
Show Gist options
  • Save lukebranch/74affa2e3e8509eefcb61c8b7e9a10c5 to your computer and use it in GitHub Desktop.
Save lukebranch/74affa2e3e8509eefcb61c8b7e9a10c5 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/opt/odoo/server/openerp/http.py", line 648, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/server/openerp/http.py", line 685, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/server/openerp/http.py", line 321, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/server/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/server/openerp/http.py", line 314, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/server/openerp/http.py", line 964, in __call__
return self.method(*args, **kw)
File "/opt/odoo/server/openerp/http.py", line 514, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/enterprise-9.0/web/controllers/main.py", line 907, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/odoo/enterprise-9.0/web/controllers/main.py", line 895, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/opt/odoo/server/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/server/openerp/addons/stock/stock.py", line 1644, in do_new_transfer
self.do_transfer(cr, uid, ids, context=context)
File "/opt/odoo/server/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/server/openerp/addons/stock/stock.py", line 1717, in do_transfer
self.pool.get('stock.move').action_done(cr, uid, todo_move_ids, context=context)
File "/opt/odoo/server/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/server/openerp/api.py", line 381, in old_api
result = method(recs, *args, **kwargs)
File "/opt/odoo/server/openerp/addons/sale_stock/sale_stock.py", line 281, in action_done
result = super(StockMove, self).action_done()
File "/opt/odoo/server/openerp/api.py", line 248, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/server/openerp/api.py", line 574, in new_api
result = method(self._model, cr, uid, self.ids, *args, **old_kwargs)
File "/opt/odoo/server/openerp/addons/stock_account/stock_account.py", line 400, in action_done
res = super(stock_move, self).action_done(cr, uid, ids, context=context)
File "/opt/odoo/server/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/server/openerp/addons/stock/stock.py", line 2708, in action_done
dest_package_id=quant_dest_package_id, entire_pack=entire_pack, context=context)
File "/opt/odoo/server/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/server/openerp/addons/stock/stock.py", line 426, in quants_move
self.move_quants_write(cr, uid, to_move_quants, move, location_to, dest_package_id, lot_id=lot_id, entire_pack=entire_pack, context=context)
File "/opt/odoo/server/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/server/openerp/addons/stock_account/stock_account.py", line 277, in move_quants_write
self._account_entry_move(cr, uid, quants, move, context=context)
File "/opt/odoo/server/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/server/openerp/addons/stock_account/stock_account.py", line 235, in _account_entry_move
self._create_account_move_line(cr, uid, quants, move, acc_valuation, acc_dest, journal_id, context=ctx)
File "/opt/odoo/server/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/server/openerp/addons/stock_account/stock_account.py", line 374, in _create_account_move_line
move_lines = self._prepare_account_move_line(cr, uid, move, qty, cost, credit_account_id, debit_account_id, context=context)
File "/opt/odoo/server/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/server/openerp/qds_addons/warranty_customization/models/stock_picking.py", line 225, in _prepare_account_move_line
res[0][2].update({'analytic_account_id': account_analytic_id})
IndexError: list index out of range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment