{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/9002","labels_url":"https://api.github.com/repos/odoo/odoo/issues/9002/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/9002/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/9002/events","html_url":"https://github.com/odoo/odoo/issues/9002","id":110764253,"number":9002,"title":"[9.0] Project Forescast Bug","user":{"login":"falinwa","id":7590534,"avatar_url":"https://avatars.githubusercontent.com/u/7590534?v=3","gravatar_id":"","url":"https://api.github.com/users/falinwa","html_url":"https://github.com/falinwa","followers_url":"https://api.github.com/users/falinwa/followers","following_url":"https://api.github.com/users/falinwa/following{/other_user}","gists_url":"https://api.github.com/users/falinwa/gists{/gist_id}","starred_url":"https://api.github.com/users/falinwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falinwa/subscriptions","organizations_url":"https://api.github.com/users/falinwa/orgs","repos_url":"https://api.github.com/users/falinwa/repos","events_url":"https://api.github.com/users/falinwa/events{/privacy}","received_events_url":"https://api.github.com/users/falinwa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"sle-odoo","id":7601090,"avatar_url":"https://avatars.githubusercontent.com/u/7601090?v=3","gravatar_id":"","url":"https://api.github.com/users/sle-odoo","html_url":"https://github.com/sle-odoo","followers_url":"https://api.github.com/users/sle-odoo/followers","following_url":"https://api.github.com/users/sle-odoo/following{/other_user}","gists_url":"https://api.github.com/users/sle-odoo/gists{/gist_id}","starred_url":"https://api.github.com/users/sle-odoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sle-odoo/subscriptions","organizations_url":"https://api.github.com/users/sle-odoo/orgs","repos_url":"https://api.github.com/users/sle-odoo/repos","events_url":"https://api.github.com/users/sle-odoo/events{/privacy}","received_events_url":"https://api.github.com/users/sle-odoo/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-10-10T03:23:53Z","updated_at":"2015-12-02T11:37:42Z","closed_at":null,"body":"Hi Odoo,\r\n\r\nI tried project forescast, and when I tried to create a new one, with project and task,\r\nit has an error message:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/odoo90/odoo/openerp/http.py\", line 599, in _handle_exception\r\n    return super(JsonRequest, self)._handle_exception(exception)\r\n  File \"/opt/odoo90/odoo/openerp/http.py\", line 636, in dispatch\r\n    result = self._call_function(**self.params)\r\n  File \"/opt/odoo90/odoo/openerp/http.py\", line 315, in _call_function\r\n    return checked_call(self.db, *args, **kwargs)\r\n  File \"/opt/odoo90/odoo/openerp/service/model.py\", line 113, in wrapper\r\n    return f(dbname, *args, **kwargs)\r\n  File \"/opt/odoo90/odoo/openerp/http.py\", line 308, in checked_call\r\n    result = self.endpoint(*a, **kw)\r\n  File \"/opt/odoo90/odoo/openerp/http.py\", line 887, in __call__\r\n    return self.method(*args, **kw)\r\n  File \"/opt/odoo90/odoo/openerp/http.py\", line 465, in response_wrap\r\n    response = f(*args, **kw)\r\n  File \"/opt/odoo90/enterprise/web/controllers/main.py\", line 965, in call_kw\r\n    return self._call_kw(model, method, args, kwargs)\r\n  File \"/opt/odoo90/enterprise/web/controllers/main.py\", line 957, in _call_kw\r\n    return checked_call(request.db, *args, **kwargs)\r\n  File \"/opt/odoo90/odoo/openerp/service/model.py\", line 113, in wrapper\r\n    return f(dbname, *args, **kwargs)\r\n  File \"/opt/odoo90/enterprise/web/controllers/main.py\", line 956, in checked_call\r\n    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)\r\n  File \"/opt/odoo90/odoo/openerp/api.py\", line 223, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/opt/odoo90/odoo/openerp/api.py\", line 318, in old_api\r\n    result = method(recs, *args, **kwargs)\r\n  File \"/opt/odoo90/odoo/openerp/models.py\", line 4114, in create\r\n    record = self.browse(self._create(old_vals))\r\n  File \"/opt/odoo90/odoo/openerp/api.py\", line 221, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/opt/odoo90/odoo/openerp/api.py\", line 454, in new_api\r\n    result = method(self._model, cr, uid, *args, **kwargs)\r\n  File \"/opt/odoo90/odoo/openerp/models.py\", line 4324, in _create\r\n    recs.recompute()\r\n  File \"/opt/odoo90/odoo/openerp/api.py\", line 221, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/opt/odoo90/odoo/openerp/models.py\", line 5781, in recompute\r\n    vals = rec._convert_to_write({n: rec[n] for n in ns})\r\n  File \"/opt/odoo90/odoo/openerp/models.py\", line 5781, in <dictcomp>\r\n    vals = rec._convert_to_write({n: rec[n] for n in ns})\r\n  File \"/opt/odoo90/odoo/openerp/models.py\", line 5668, in __getitem__\r\n    return self._fields[key].__get__(self, type(self))\r\n  File \"/opt/odoo90/odoo/openerp/fields.py\", line 805, in __get__\r\n    self.determine_value(record)\r\n  File \"/opt/odoo90/odoo/openerp/fields.py\", line 887, in determine_value\r\n    self.compute_value(recs)\r\n  File \"/opt/odoo90/odoo/openerp/fields.py\", line 867, in compute_value\r\n    self._compute_value(records)\r\n  File \"/opt/odoo90/odoo/openerp/fields.py\", line 857, in _compute_value\r\n    getattr(records, self.compute)()\r\n  File \"/opt/odoo90/odoo/openerp/api.py\", line 221, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/opt/odoo90/odoo/openerp/api.py\", line 389, in new_api\r\n    result = [method(rec, *args, **kwargs) for rec in self]\r\n  File \"/opt/odoo90/enterprise/project_forecast/models/models.py\", line 89, in _compute_effective_hours\r\n    if self.task_id and self.env['project.config.settings'].search([]).module_project_timesheet:\r\n  File \"/opt/odoo90/odoo/openerp/fields.py\", line 795, in __get__\r\n    record.ensure_one()\r\n  File \"/opt/odoo90/odoo/openerp/models.py\", line 5358, in ensure_one\r\n    raise ValueError(\"Expected singleton: %s\" % self)\r\nValueError: Expected singleton: project.config.settings(1, 2)\r\n\r\nif I just define the project all is fine.\r\nThank You."},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/161268190","html_url":"https://github.com/odoo/odoo/issues/9002#issuecomment-161268190","issue_url":"https://api.github.com/repos/odoo/odoo/issues/9002","id":161268190,"user":{"login":"sle-odoo","id":7601090,"avatar_url":"https://avatars.githubusercontent.com/u/7601090?v=3","gravatar_id":"","url":"https://api.github.com/users/sle-odoo","html_url":"https://github.com/sle-odoo","followers_url":"https://api.github.com/users/sle-odoo/followers","following_url":"https://api.github.com/users/sle-odoo/following{/other_user}","gists_url":"https://api.github.com/users/sle-odoo/gists{/gist_id}","starred_url":"https://api.github.com/users/sle-odoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sle-odoo/subscriptions","organizations_url":"https://api.github.com/users/sle-odoo/orgs","repos_url":"https://api.github.com/users/sle-odoo/repos","events_url":"https://api.github.com/users/sle-odoo/events{/privacy}","received_events_url":"https://api.github.com/users/sle-odoo/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T11:37:42Z","updated_at":"2015-12-02T11:37:42Z","body":"Are you up to date? Can you reproduce this issue in the latest runbot?\r\nI must be missing something"}}