{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/5434","labels_url":"https://api.github.com/repos/odoo/odoo/issues/5434/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/5434/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/5434/events","html_url":"https://github.com/odoo/odoo/issues/5434","id":58640021,"number":5434,"title":"[8.0] Validate invoice results..object has no attribute 'recompute'","user":{"login":"malatestay","id":5101602,"avatar_url":"https://avatars.githubusercontent.com/u/5101602?v=3","gravatar_id":"","url":"https://api.github.com/users/malatestay","html_url":"https://github.com/malatestay","followers_url":"https://api.github.com/users/malatestay/followers","following_url":"https://api.github.com/users/malatestay/following{/other_user}","gists_url":"https://api.github.com/users/malatestay/gists{/gist_id}","starred_url":"https://api.github.com/users/malatestay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malatestay/subscriptions","organizations_url":"https://api.github.com/users/malatestay/orgs","repos_url":"https://api.github.com/users/malatestay/repos","events_url":"https://api.github.com/users/malatestay/events{/privacy}","received_events_url":"https://api.github.com/users/malatestay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-23T20:03:33Z","updated_at":"2015-03-07T20:20:55Z","closed_at":null,"body":"OpenERP Server Error\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/http.py\", line 508, in _handle_exception\r\n    return super(JsonRequest, self)._handle_exception(exception)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/http.py\", line 526, in dispatch\r\n    result = self._call_function(**self.params)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/http.py\", line 285, in _call_function\r\n    return checked_call(self.db, *args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/service/model.py\", line 113, in wrapper\r\n    return f(dbname, *args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/http.py\", line 282, in checked_call\r\n    return self.endpoint(*a, **kw)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/http.py\", line 742, in __call__\r\n    return self.method(*args, **kw)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/http.py\", line 378, in response_wrap\r\n    response = f(*args, **kw)\r\n  File \"/opt/odoo/addons/web/controllers/main.py\", line 960, in exec_workflow\r\n    return request.session.exec_workflow(model, id, signal)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/http.py\", line 1045, in exec_workflow\r\n    r = self.proxy('object').exec_workflow(self.db, self.uid, self.password, model, signal, id)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/http.py\", line 816, in proxy_method\r\n    result = dispatch_rpc(self.service_name, method, args)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/http.py\", line 100, in dispatch_rpc\r\n    result = dispatch(method, params)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/service/model.py\", line 37, in dispatch\r\n    res = fn(db, uid, *params)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/service/model.py\", line 113, in wrapper\r\n    return f(dbname, *args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/service/model.py\", line 183, in exec_workflow\r\n    return exec_workflow_cr(cr, uid, obj, signal, *args)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/service/model.py\", line 177, in exec_workflow_cr\r\n    return execute_cr(cr, uid, obj, 'signal_workflow', [res_id], signal)[res_id]\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/service/model.py\", line 159, in execute_cr\r\n    return getattr(object, method)(cr, uid, *args, **kw)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/api.py\", line 237, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/models.py\", line 3478, in signal_workflow\r\n    result[res_id] = workflow.trg_validate(uid, self._name, res_id, signal, cr)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/workflow/__init__.py\", line 85, in trg_validate\r\n    return WorkflowService.new(cr, uid, res_type, res_id).validate(signal)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/workflow/service.py\", line 91, in validate\r\n    res2 = wi.validate(signal)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/workflow/instance.py\", line 75, in validate\r\n    wi.process(signal=signal, force_running=force_running, stack=stack)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/workflow/workitem.py\", line 120, in process\r\n    ok = self._split_test(activity['split_mode'], signal, stack)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/workflow/workitem.py\", line 248, in _split_test\r\n    self._join_test(t[0], t[1], stack)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/workflow/workitem.py\", line 257, in _join_test\r\n    WorkflowItem.create(self.session, self.record, activity, inst_id, stack=stack)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/workflow/workitem.py\", line 95, in create\r\n    workflow_item.process(stack=stack)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/workflow/workitem.py\", line 116, in process\r\n    if not self._execute(activity, stack):\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/workflow/workitem.py\", line 162, in _execute\r\n    returned_action = self.wkf_expr_execute(activity)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/workflow/workitem.py\", line 313, in wkf_expr_execute\r\n    return self.wkf_expr_eval_expr(activity['action'])\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/workflow/workitem.py\", line 291, in wkf_expr_eval_expr\r\n    result = eval(line, env, nocopy=True)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/tools/safe_eval.py\", line 313, in safe_eval\r\n    return eval(c, globals_dict, locals_dict)\r\n  File \"\", line 1, in <module>\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/api.py\", line 235, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/addons/account/account_invoice.py\", line 916, in action_move_create\r\n    move = account_move.with_context(ctx).create(move_vals)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/api.py\", line 235, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/api.py\", line 464, in new_api\r\n    result = method(self._model, cr, uid, *args, **kwargs)\r\n  File \"/opt/odoo/addons/account/account.py\", line 1394, in create\r\n    result = super(account_move, self).create(cr, uid, vals, c)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/api.py\", line 237, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/api.py\", line 332, in old_api\r\n    result = method(recs, *args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/models.py\", line 3994, in create\r\n    record = self.browse(self._create(old_vals))\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/api.py\", line 235, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/api.py\", line 464, in new_api\r\n    result = method(self._model, cr, uid, *args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/models.py\", line 4179, in _create\r\n    result += self._columns[field].set(cr, self, id_new, field, vals[field], user, rel_context) or []\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/osv/fields.py\", line 742, in set\r\n    id_new = obj.create(cr, user, act[2], context=context)\r\n  File \"/usr/local/lib/python2.7/dist-packages/openerp-8.0-py2.7.egg/openerp/api.py\", line 237, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/addons/account/account_move_line.py\", line 1399, in create\r\n    recompute = journal.env.recompute and context.get('recompute', True)\r\nValueError: \"'Environment' object has no attribute 'recompute'\" while evaluating\r\nu'action_move_create()'"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/77708059","html_url":"https://github.com/odoo/odoo/issues/5434#issuecomment-77708059","issue_url":"https://api.github.com/repos/odoo/odoo/issues/5434","id":77708059,"user":{"login":"lapagept","id":8990304,"avatar_url":"https://avatars.githubusercontent.com/u/8990304?v=3","gravatar_id":"","url":"https://api.github.com/users/lapagept","html_url":"https://github.com/lapagept","followers_url":"https://api.github.com/users/lapagept/followers","following_url":"https://api.github.com/users/lapagept/following{/other_user}","gists_url":"https://api.github.com/users/lapagept/gists{/gist_id}","starred_url":"https://api.github.com/users/lapagept/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lapagept/subscriptions","organizations_url":"https://api.github.com/users/lapagept/orgs","repos_url":"https://api.github.com/users/lapagept/repos","events_url":"https://api.github.com/users/lapagept/events{/privacy}","received_events_url":"https://api.github.com/users/lapagept/received_events","type":"User","site_admin":false},"created_at":"2015-03-07T20:20:55Z","updated_at":"2015-03-07T20:20:55Z","body":"I get this error too. Analyzing this.\r\n"}}