Community mailing list archives

community@mail.odoo.com

Issues with website_sale_delivery on front-end

by
kristian
- 11/13/2015 22:14:03

Hi, everytime I try to do a checkout, when module 'website_sale_delivery' is installed, system throws this QWeb error:

'foreach enumerator 'shipping_countries' is not defined while rendering template 907'

First time I've tried with a customized template, then tried with a vanilla system, and the behavior is the same. First thought it could be a customization issue, but it isn't.

Process to reproduce this error:

1.- Install website, eCommerce and website_sale_delivery modules

2.- Create a product on backend

3.- Publish product on website

4.- Access to yourip:8069/shop

5.- Select 'Add to Cart' , then 'Process checkout'

Here's the complete traceback:

Traceback (most recent call last):
File "/opt/python/apps/odoo/instances/sukotto/odoo/addons/website/models/ir_http.py", line 242, in _handle_exception
response = super(ir_http, self)._handle_exception(exception)
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_http.py", line 147, in _handle_exception
return request._handle_exception(exception)
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/http.py", line 737, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_http.py", line 172, in _dispatch
result = request.dispatch()
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/http.py", line 768, in dispatch
r = self._call_function(*self.params)
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/http.py", line 315, in _call_function
return checked_call(self.db, *args, *
kwargs)
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/service/model.py", line 118, in wrapper
return f(dbname, args, *kwargs)
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/http.py", line 311, in checked_call
result.flatten()
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/http.py", line 1367, in flatten
self.response.append(self.render())
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/http.py", line 1360, in render
context=request.context)
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/api.py", line 232, in wrapper
return old_api(self, args, *kwargs)
File "/opt/python/apps/odoo/instances/sukotto/odoo/addons/website/models/ir_ui_view.py", line 143, in render
return super(view, self).render(cr, uid, id_or_xml_id, values=values, engine=engine, context=context)
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/api.py", line 232, in wrapper
return old_api(self, args, *kwargs)
File "/opt/python/apps/odoo/instances/sukotto/odoo/addons/web_editor/models/ir_ui_view.py", line 29, in render
return super(view, self).render(cr, uid, id_or_xml_id, values=values, engine=engine, context=context)
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/api.py", line 232, in wrapper
return old_api(self, args, *kwargs)
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_ui_view.py", line 1065, in render
return self.pool[engine].render(cr, uid, id_or_xml_id, qcontext, loader=loader, context=context)
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/api.py", line 232, in wrapper
return old_api(self, args, *kwargs)
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 253, in render
return self.render_node(element, qwebcontext, generated_attributes=qwebcontext.pop('generated_attributes', ''))
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 296, in render_node
result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 319, in render_element
generated_attributes= name == "t" and generated_attributes or ''))
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node
result = self._render_tagt_render
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 447, in render_tag_call
d[0] = self.render_element(element, template_attributes, generated_attributes, d)
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 319, in render_element
generated_attributes= name == "t" and generated_attributes or ''))
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 296, in render_node
result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 319, in render_element
generated_attributes= name == "t" and generated_attributes or ''))
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 296, in render_node
result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 319, in render_element
generated_attributes= name == "t" and generated_attributes or ''))
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 296, in render_node
result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 319, in render_element
generated_attributes= name == "t" and generated_attributes or ''))
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 296, in render_node
result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 319, in render_element
generated_attributes= name == "t" and generated_attributes or ''))
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 296, in render_node
result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 319, in render_element
generated_attributes= name == "t" and generated_attributes or ''))
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node
result = self._render_tagt_render
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 434, in render_tag_if
return self.render_element(element, template_attributes, generated_attributes, qwebcontext)
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 319, in render_element
generated_attributes= name == "t" and generated_attributes or ''))
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 296, in render_node
result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 319, in render_element
generated_attributes= name == "t" and generated_attributes or ''))
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 296, in render_node
result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 319, in render_element
generated_attributes= name == "t" and generated_attributes or ''))
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node
result = self._render_tagt_render
File "/opt/python/apps/odoo/instances/sukotto/odoo/openerp/addons/base/ir/ir_qweb.py", line 390, in render_tag_foreach
raise QWebException("foreach enumerator %r is not defined while rendering template %r" % (expr, template), template=template)
QWebException: foreach enumerator 'shipping_countries' is not defined while rendering template 907

Any ideas please?

Thanks in advance!


--
Kristian Koci
Linux User #582221