Community mailing list archives

community@mail.odoo.com

Re: Issues with website_sale_delivery on front-end

by
Luke Branch
- 11/14/2015 01:45:15
Hi Kristian,

No problem. I recommend we continue the discussion on the github issue to see if we can resolve it on there.

On Sat, Nov 14, 2015 at 2:12 PM, Kristian Koci <kristian.koci@gmail.com> wrote:
Hi Luke

I'm using v9

I'm going to follow your guidelines and see what happens, Thank you

I'll keep you informed!

On Sat, Nov 14, 2015 at 12:26 AM, Luke Branch <odoocommunitywidgets@gmail.com> wrote:
Hi Kristian,

What version of Odoo are you running? It sounds like it is indeed a customisation issue. Have you defined your deliver grid rates already?

I'd recommend backing up your database and filesystem and then trying to upgrade the website_sale_delivery and delivery modules by going to:

Settings >> Installed Modules >> (search for) Delivery Costs > (Click the red upgrade button)
Settings >> Installed Modules >> (search for) eCommerce Delivery > (Click the red upgrade button)

this should get rid of any customisations that may have been applied to those two modules if anything has perhaps been modified in the website code editor.

If this doesn't work could you provide more details about your setup, for example:

+ Steps to reproduce after you have added values to your delivery grid (eg. what values have you put in your delivery grid, including the Destination >> Countries tab).

Can you reproduce the same error on the runbot of the version you're using here:

http://runbot.odoo.com

(just choose 8.0 or 9.0 branch and use admin is username and password to login)

If you are running the latest code on your local instance and you can reproduce it on both your local instance and the runbot instance for that branch (eg. Odoo 8.0) then this might indeed be a bug. In which case it would be useful if you could create a small screencapture gif using the following program:

http://www.cockos.com/licecap/

and posting this screencapture to your github issue here:

https://github.com/odoo/odoo/issues/9567



On Sat, Nov 14, 2015 at 11:17 AM, Kristian Koci <kristian.koci@gmail.com> wrote:

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

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Kristian Koci
Linux User #582221

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe