{"action":"created","issue":{"url":"https://api.github.com/repos/OCA/website/issues/51","repository_url":"https://api.github.com/repos/OCA/website","labels_url":"https://api.github.com/repos/OCA/website/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/OCA/website/issues/51/comments","events_url":"https://api.github.com/repos/OCA/website/issues/51/events","html_url":"https://github.com/OCA/website/issues/51","id":92467512,"node_id":"MDU6SXNzdWU5MjQ2NzUxMg==","number":51,"title":"Collapsible product categories in website shop causing NoneType error","user":{"login":"beergirlatl","id":11587862,"node_id":"MDQ6VXNlcjExNTg3ODYy","avatar_url":"https://avatars0.githubusercontent.com/u/11587862?v=4","gravatar_id":"","url":"https://api.github.com/users/beergirlatl","html_url":"https://github.com/beergirlatl","followers_url":"https://api.github.com/users/beergirlatl/followers","following_url":"https://api.github.com/users/beergirlatl/following{/other_user}","gists_url":"https://api.github.com/users/beergirlatl/gists{/gist_id}","starred_url":"https://api.github.com/users/beergirlatl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beergirlatl/subscriptions","organizations_url":"https://api.github.com/users/beergirlatl/orgs","repos_url":"https://api.github.com/users/beergirlatl/repos","events_url":"https://api.github.com/users/beergirlatl/events{/privacy}","received_events_url":"https://api.github.com/users/beergirlatl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2015-07-01T19:34:02Z","updated_at":"2018-08-12T14:30:01Z","closed_at":"2015-07-30T20:33:06Z","author_association":"NONE","body":"I have successfully installed the module (without error) to create collapsible categories in the webshop, but when I navigate to the Customize menu and select the check box, the shop page shows this error.  \n\nI am suspecting that this is some sort of null data error, but not sure where/what might be missing?  I have many categories with parent categories, and every product in the system has a public category defined.  \n\nAny suggestions on where to look would be much appreciated.\n\nOh, I am running odoo on Windows 8 and despite the file structure I am current up to the odoo_8.0.20150625 build.\n\n![screenhunter_65 jul 01 15 17](https://cloud.githubusercontent.com/assets/11587862/8462820/66d65f6c-2004-11e5-93fb-96fe1959e556.jpg)\n![screenhunter_66 jul 01 15 23](https://cloud.githubusercontent.com/assets/11587862/8462952/36312e90-2005-11e5-8d88-4670a324156d.jpg)\n\nError\nError message:\n\n\"argument of type 'NoneType' is not iterable\" while evaluating\n\"'fa-chevron-down' if categ.id in parent_category_ids else 'fa-chevron-right'\"\nQWeb\nError message:\n\nCould not evaluate expression \"'fa-chevron-down' if categ.id in parent_category_ids else 'fa-chevron-right'\"\nThe error occured while rendering the template website_sale_collapse_categories.option_collapse_categories_recursive and evaluating the following expression: 'fa-chevron-down' if categ.id in parent_category_ids else 'fa-chevron-right'\n\nTraceback\nTraceback (most recent call last):\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\website\\models\\ir_http.py\", line 199, in _handle_exception\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_http.py\", line 147, in _handle_exception\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server.\\openerp\\http.py\", line 666, in _handle_exception\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server.\\openerp\\http.py\", line 1368, in get_response\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server.\\openerp\\http.py\", line 1241, in flatten\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server.\\openerp\\http.py\", line 1235, in render\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server.\\openerp\\api.py\", line 241, in wrapper\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\website\\models\\ir_ui_view.py\", line 172, in render\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server.\\openerp\\api.py\", line 241, in wrapper\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_ui_view.py\", line 1029, in render\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server.\\openerp\\api.py\", line 241, in wrapper\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 261, in render\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 300, in render_node\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 321, in render_element\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 298, in render_node\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 436, in render_tag_call\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 321, in render_element\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 300, in render_node\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 321, in render_element\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 300, in render_node\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 321, in render_element\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 300, in render_node\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 321, in render_element\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 300, in render_node\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 321, in render_element\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 300, in render_node\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 321, in render_element\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 298, in render_node\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 422, in render_tag_foreach\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 321, in render_element\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 298, in render_node\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 445, in render_tag_call\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server.\\openerp\\api.py\", line 241, in wrapper\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 261, in render\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 300, in render_node\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 321, in render_element\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 300, in render_node\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 321, in render_element\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 283, in render_node\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\website\\models\\ir_qweb.py\", line 61, in render_att_att\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 354, in render_att_att\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 223, in eval_format\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 222, in <lambda>\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 213, in eval_str\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 205, in eval\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 202, in eval\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server\\openerp\\addons\\base\\ir\\ir_qweb.py\", line 88, in safe_eval\n  File \"C:\\Program Files (x86)\\Odoo 8.0-20141003-000212\\server.\\openerp\\tools\\safe_eval.py\", line 314, in safe_eval\n  File \"\", line 1, in <module>\nQWebException: \"argument of type 'NoneType' is not iterable\" while evaluating\n\"'fa-chevron-down' if categ.id in parent_category_ids else 'fa-chevron-right'\"\n"},"comment":{"url":"https://api.github.com/repos/OCA/website/issues/comments/412346695","html_url":"https://github.com/OCA/website/issues/51#issuecomment-412346695","issue_url":"https://api.github.com/repos/OCA/website/issues/51","id":412346695,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjM0NjY5NQ==","user":{"login":"pedrobaeza","id":7165771,"node_id":"MDQ6VXNlcjcxNjU3NzE=","avatar_url":"https://avatars2.githubusercontent.com/u/7165771?v=4","gravatar_id":"","url":"https://api.github.com/users/pedrobaeza","html_url":"https://github.com/pedrobaeza","followers_url":"https://api.github.com/users/pedrobaeza/followers","following_url":"https://api.github.com/users/pedrobaeza/following{/other_user}","gists_url":"https://api.github.com/users/pedrobaeza/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrobaeza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrobaeza/subscriptions","organizations_url":"https://api.github.com/users/pedrobaeza/orgs","repos_url":"https://api.github.com/users/pedrobaeza/repos","events_url":"https://api.github.com/users/pedrobaeza/events{/privacy}","received_events_url":"https://api.github.com/users/pedrobaeza/received_events","type":"User","site_admin":false},"created_at":"2018-08-12T14:30:01Z","updated_at":"2018-08-12T14:30:01Z","author_association":"CONTRIBUTOR","body":"I don't think the problem is in versions >v8, as the feature is integrated in core, with no multiple inheritance. For v8, the only way I see is to add a glue module."}}
{"actor":{"display_login":"pedrobaeza"}}