{"action":"opened","issue":{"url":"https://api.github.com/repos/yelizariev/website-addons/issues/11","labels_url":"https://api.github.com/repos/yelizariev/website-addons/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/yelizariev/website-addons/issues/11/comments","events_url":"https://api.github.com/repos/yelizariev/website-addons/issues/11/events","html_url":"https://github.com/yelizariev/website-addons/issues/11","id":104075211,"number":11,"title":"Error on product Export when using module website_sale_search_custom","user":{"login":"okuryan","id":2680904,"avatar_url":"https://avatars.githubusercontent.com/u/2680904?v=3","gravatar_id":"","url":"https://api.github.com/users/okuryan","html_url":"https://github.com/okuryan","followers_url":"https://api.github.com/users/okuryan/followers","following_url":"https://api.github.com/users/okuryan/following{/other_user}","gists_url":"https://api.github.com/users/okuryan/gists{/gist_id}","starred_url":"https://api.github.com/users/okuryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okuryan/subscriptions","organizations_url":"https://api.github.com/users/okuryan/orgs","repos_url":"https://api.github.com/users/okuryan/repos","events_url":"https://api.github.com/users/okuryan/events{/privacy}","received_events_url":"https://api.github.com/users/okuryan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-31T15:24:49Z","updated_at":"2015-08-31T15:24:49Z","closed_at":null,"body":"Hi Ivan,\r\n\r\nWe have found an error in website_sale_search_custom module. Maybe you can help in fixing it. Note that your module is used in https://apps.openerp.com/apps/modules/8.0/website_search_suggestion/ that i spaid module that is purchased by our customer. I'm not sure if you are related to that module, but maybe you can helpю\r\n\r\nSO basically problem is following:\r\n1. Install module website_sale_search_custom\r\n2. Go to menu \"Sales -> Products\" and try to export product templates. See below screenshot:\r\n![screen shot 2015-08-31 at 18 18 53](https://cloud.githubusercontent.com/assets/2680904/9582260/e5cc31e2-500c-11e5-8491-17d7cfedc710.png)\r\n3. Now click on Export and see below error:\r\n![screen shot 2015-08-31 at 18 21 56](https://cloud.githubusercontent.com/assets/2680904/9582288/34968304-500d-11e5-968a-865d068b2e56.png)\r\n\r\nAlso copying the text:\r\nOdoo Server Error\r\nTraceback (most recent call last):\r\n  File \"/opt/openerp/odoo/addons/web/controllers/main.py\", line 70, in wrap\r\n    return f(*args, **kwargs)\r\n  File \"/opt/openerp/odoo/addons/web/controllers/main.py\", line 1460, in index\r\n    return self.base(data, token)\r\n  File \"/opt/openerp/odoo/addons/web/controllers/main.py\", line 1435, in base\r\n    ids = ids or Model.search(domain, 0, False, False, context)\r\n  File \"/opt/openerp/odoo/openerp/http.py\", line 908, in proxy\r\n    result = meth(cr, request.uid, *args, **kw)\r\n  File \"/opt/openerp/odoo/openerp/api.py\", line 241, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\nTypeError: search() takes at most 5 arguments (8 given)\r\n\r\n\r\nWhy I think that problem is related to website_sale_search_custom ?\r\nWe commented out this  3 lines of code and Export started to work. https://github.com/yelizariev/website-addons/blob/8.0/website_sale_search_custom/models.py#L36\r\n\r\nJust for your information - we are using Odoo 8:\r\n# git rev-parse HEAD\r\n9ef5e40278b317a022410d418a751d162523005b\r\n"}}