diff options
| author | Jeremy Kersten <jke@odoo.com> | 2018-02-23 10:09:33 +0100 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2018-02-23 10:36:15 +0100 |
| commit | dee3b87ae4b7c67f21a445ed8caecdd6fa36277f (patch) | |
| tree | 91c56d83d08dbc67a6072d8f410db9eb3ae1832c /doc/_extensions | |
| parent | ff7efbb1e81cd6987601c03f0b75a37d2df8e331 (diff) | |
[FIX] website_customer: fix sitemap when customer had no country
Before this commit, the sitemap will crash if you have some res.partner
without country that are publish and with an assigned_partner_id.
Now, we only search for customer with country that are set and avoid to have
a traceback:
File "/home/odoo/src/odoo/11.0/addons/website_customer/controllers/main.py", line 31, in sitemap_industry
loc = '/customers/country/%s' % slug(country['country_id'])
File "/home/odoo/src/odoo/11.0/addons/http_routing/models/ir_http.py", line 91, in slug
identifier, name = value
TypeError: 'bool' object is not iterable
Diffstat (limited to 'doc/_extensions')
0 files changed, 0 insertions, 0 deletions
