Skip to Content
Menu
This question has been flagged
3 Replies
2652 Views

Odoo v9.0c

I installed the module "website_sale_delivery", and now check out gives 500 error, here is error log:

Traceback (most recent call last):

File "/instances/twoosk/odoo/addons/website/models/ir_http.py", line 243, in _handle_exception

response = super(ir_http, self)._handle_exception(exception)

File "/instances/twoosk/odoo/openerp/addons/base/ir/ir_http.py", line 157, in _handle_exception

return request._handle_exception(exception)

File "/instances/twoosk/odoo/openerp/http.py", line 784, in _handle_exception

return super(HttpRequest, self)._handle_exception(exception)

File "/instances/twoosk/odoo/openerp/addons/base/ir/ir_http.py", line 182, in _dispatch

result = request.dispatch()

File "/instances/twoosk/odoo/openerp/http.py", line 843, in dispatch

r = self._call_function(**self.params)

File "/instances/twoosk/odoo/openerp/http.py", line 319, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/instances/twoosk/odoo/openerp/service/model.py", line 118, in wrapper

return f(dbname, *args, **kwargs)

File "/instances/twoosk/odoo/openerp/http.py", line 312, in checked_call

result = self.endpoint(*a, **kw)

File "/instances/twoosk/odoo/openerp/http.py", line 962, in __call__

return self.method(*args, **kw)

File "/instances/twoosk/odoo/openerp/http.py", line 512, in response_wrap

response = f(*args, **kw)

File "/var/twooskftp/addons-twoosk/twoosk_custom_module/controllers.py", line 16, in confirm_order

return super(twoosk_custom_module,self).confirm_order(**post)

File "/instances/twoosk/odoo/openerp/http.py", line 512, in response_wrap

response = f(*args, **kw)

File "/instances/twoosk/odoo/addons/website_sale/controllers/main.py", line 693, in confirm_order

request.website.sale_get_order(update_pricelist=True, context=context)

File "/instances/twoosk/odoo/openerp/api.py", line 248, in wrapper

return new_api(self, *args, **kwargs)

File "/instances/twoosk/odoo/openerp/api.py", line 574, in new_api

result = method(self._model, cr, uid, self.ids, *args, **old_kwargs)

File "/instances/twoosk/odoo/addons/website_sale/models/sale_order.py", line 389, in sale_get_order

sale_order._cart_update(product_id=line.product_id.id, line_id=line.id, add_qty=0)

File "/instances/twoosk/odoo/openerp/api.py", line 248, in wrapper

return new_api(self, *args, **kwargs)

File "/instances/twoosk/odoo/openerp/api.py", line 574, in new_api

result = method(self._model, cr, uid, self.ids, *args, **old_kwargs)

File "/instances/twoosk/odoo/addons/website_sale_options/models/sale_order.py", line 35, in _cart_update

value = super(sale_order, self)._cart_update(cr, uid, ids, product_id, line_id, add_qty, set_qty, context=context, **kwargs)

File "/instances/twoosk/odoo/openerp/api.py", line 250, in wrapper

return old_api(self, *args, **kwargs)

File "/instances/twoosk/odoo/addons/website_sale_delivery/models/sale_order.py", line 172, in _cart_update

cr, uid, ids, product_id, line_id, add_qty, set_qty, context, **kwargs)

File "/instances/twoosk/odoo/openerp/api.py", line 250, in wrapper

return old_api(self, *args, **kwargs)

File "/instances/twoosk/odoo/addons/website_sale/models/sale_order.py", line 104, in _cart_update

quantity = sol.browse(cr, SUPERUSER_ID, line_id, context=context).product_uom_qty + (add_qty or 0)

File "/instances/twoosk/odoo/openerp/fields.py", line 822, in __get__

return record._cache[self]

File "/instances/twoosk/odoo/openerp/models.py", line 6132, in __getitem__

return value.get() if isinstance(value, SpecialValue) else value

File "/instances/twoosk/odoo/openerp/fields.py", line 39, in get

raise self.exception

MissingError: (u'Record does not exist or has been deleted.', None)

Avatar
Discard

If you are not in live database, try in a new database, create a db install this module, hope you will not get this error there in it

stop your odoo server, clean all cached python files, run full upgrade and try again. there is something missing there.

Author Best Answer

unfortunately i am on a live DB, can you at least explain to me what could be wrong, as from website_sale_delivery, i can see that it unset_delivery, and then in website_sale/sale_order.py it tries to access it again, which is weird.

Avatar
Discard