{"action":"created","issue":{"url":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/506","labels_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/506/labels{/name}","comments_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/506/comments","events_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/506/events","html_url":"https://github.com/odoomrp/odoomrp-wip/issues/506","id":53336570,"number":506,"title":"Short dump when confirming a manufacturing order","user":{"login":"ybofr","id":7601880,"avatar_url":"https://avatars.githubusercontent.com/u/7601880?v=3","gravatar_id":"","url":"https://api.github.com/users/ybofr","html_url":"https://github.com/ybofr","followers_url":"https://api.github.com/users/ybofr/followers","following_url":"https://api.github.com/users/ybofr/following{/other_user}","gists_url":"https://api.github.com/users/ybofr/gists{/gist_id}","starred_url":"https://api.github.com/users/ybofr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ybofr/subscriptions","organizations_url":"https://api.github.com/users/ybofr/orgs","repos_url":"https://api.github.com/users/ybofr/repos","events_url":"https://api.github.com/users/ybofr/events{/privacy}","received_events_url":"https://api.github.com/users/ybofr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"oihane","id":2323616,"avatar_url":"https://avatars.githubusercontent.com/u/2323616?v=3","gravatar_id":"","url":"https://api.github.com/users/oihane","html_url":"https://github.com/oihane","followers_url":"https://api.github.com/users/oihane/followers","following_url":"https://api.github.com/users/oihane/following{/other_user}","gists_url":"https://api.github.com/users/oihane/gists{/gist_id}","starred_url":"https://api.github.com/users/oihane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oihane/subscriptions","organizations_url":"https://api.github.com/users/oihane/orgs","repos_url":"https://api.github.com/users/oihane/repos","events_url":"https://api.github.com/users/oihane/events{/privacy}","received_events_url":"https://api.github.com/users/oihane/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-01-04T13:35:49Z","updated_at":"2015-01-05T09:41:34Z","closed_at":null,"body":"Odoo Server Error\r\n```\r\nTraceback (most recent call last):\r\n  File \"/opt/odoo/v8/core/openerp/http.py\", line 517, in _handle_exception\r\n    return super(JsonRequest, self)._handle_exception(exception)\r\n  File \"/opt/odoo/v8/core/openerp/http.py\", line 538, in dispatch\r\n    result = self._call_function(**self.params)\r\n  File \"/opt/odoo/v8/core/openerp/http.py\", line 294, in _call_function\r\n    return checked_call(self.db, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/openerp/service/model.py\", line 113, in wrapper\r\n    return f(dbname, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/openerp/http.py\", line 291, in checked_call\r\n    return self.endpoint(*a, **kw)\r\n  File \"/opt/odoo/v8/core/openerp/http.py\", line 754, in __call__\r\n    return self.method(*args, **kw)\r\n  File \"/opt/odoo/v8/core/openerp/http.py\", line 387, in response_wrap\r\n    response = f(*args, **kw)\r\n  File \"/opt/odoo/v8/core/addons/web/controllers/main.py\", line 960, in exec_workflow\r\n    return request.session.exec_workflow(model, id, signal)\r\n  File \"/opt/odoo/v8/core/openerp/http.py\", line 1057, in exec_workflow\r\n    r = self.proxy('object').exec_workflow(self.db, self.uid, self.password, model, signal, id)\r\n  File \"/opt/odoo/v8/core/openerp/http.py\", line 828, in proxy_method\r\n    result = dispatch_rpc(self.service_name, method, args)\r\n  File \"/opt/odoo/v8/core/openerp/http.py\", line 108, in dispatch_rpc\r\n    result = dispatch(method, params)\r\n  File \"/opt/odoo/v8/core/openerp/service/model.py\", line 37, in dispatch\r\n    res = fn(db, uid, *params)\r\n  File \"/opt/odoo/v8/core/openerp/service/model.py\", line 113, in wrapper\r\n    return f(dbname, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/openerp/service/model.py\", line 183, in exec_workflow\r\n    return exec_workflow_cr(cr, uid, obj, signal, *args)\r\n  File \"/opt/odoo/v8/core/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 \"/opt/odoo/v8/core/openerp/service/model.py\", line 159, in execute_cr\r\n    return getattr(object, method)(cr, uid, *args, **kw)\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 237, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/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 \"/opt/odoo/v8/core/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 \"/opt/odoo/v8/core/openerp/workflow/service.py\", line 91, in validate\r\n    res2 = wi.validate(signal)\r\n  File \"/opt/odoo/v8/core/openerp/workflow/instance.py\", line 75, in validate\r\n    wi.process(signal=signal, force_running=force_running, stack=stack)\r\n  File \"/opt/odoo/v8/core/openerp/workflow/workitem.py\", line 120, in process\r\n    ok = self._split_test(activity['split_mode'], signal, stack)\r\n  File \"/opt/odoo/v8/core/openerp/workflow/workitem.py\", line 248, in _split_test\r\n    self._join_test(t[0], t[1], stack)\r\n  File \"/opt/odoo/v8/core/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 \"/opt/odoo/v8/core/openerp/workflow/workitem.py\", line 95, in create\r\n    workflow_item.process(stack=stack)\r\n  File \"/opt/odoo/v8/core/openerp/workflow/workitem.py\", line 116, in process\r\n    if not self._execute(activity, stack):\r\n  File \"/opt/odoo/v8/core/openerp/workflow/workitem.py\", line 162, in _execute\r\n    returned_action = self.wkf_expr_execute(activity)\r\n  File \"/opt/odoo/v8/core/openerp/workflow/workitem.py\", line 313, in wkf_expr_execute\r\n    return self.wkf_expr_eval_expr(activity['action'])\r\n  File \"/opt/odoo/v8/core/openerp/workflow/workitem.py\", line 291, in wkf_expr_eval_expr\r\n    result = eval(line, env, nocopy=True)\r\n  File \"/opt/odoo/v8/core/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 \"/opt/odoo/v8/core/openerp/api.py\", line 235, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 395, in new_api\r\n    result = [method(rec, *args, **kwargs) for rec in self]\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 235, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/v8/odoomrp-wip/mrp_production_project_estimated_cost/models/mrp_production.py\", line 28, in action_confirm\r\n    res = super(MrpProduction, self).action_confirm()\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 235, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/v8/odoomrp-wip/mrp_project_link/models/mrp_production.py\", line 71, in action_confirm\r\n    result = super(MrpProduction, self).action_confirm()\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 235, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 395, in new_api\r\n    result = [method(rec, *args, **kwargs) for rec in self]\r\n  File \"/opt/odoo/v8/odoomrp-wip/mrp_subcontracting/models/mrp_production.py\", line 64, in action_confirm\r\n    res = super(MrpProduction, self).action_confirm()\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 235, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/v8/odoomrp-wip/mrp_lot_reserve/models/mrp_production.py\", line 63, in action_confirm\r\n    res = super(MrpProduction, self).action_confirm()\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 235, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 552, in new_api\r\n    result = method(self._model, cr, uid, self.ids, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/addons/mrp/mrp.py\", line 1181, in action_confirm\r\n    self._make_production_produce_line(cr, uid, production, context=context)\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 237, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 332, in old_api\r\n    result = method(recs, *args, **kwargs)\r\n  File \"/opt/odoo/v8/odoomrp-wip/mrp_product_variants/models/mrp_production.py\", line 189, in _make_production_produce_line\r\n    'attribute_value_ids': [(6, 0, att_values_ids)]})\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 235, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/v8/odoomrp-wip/product_variant_default_code/models/product.py\", line 126, in create\r\n    product = super(ProductProduct, self).create(values)\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 235, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 464, in new_api\r\n    result = method(self._model, cr, uid, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/addons/product/product.py\", line 1134, in create\r\n    return super(product_product, self).create(cr, uid, vals, context=ctx)\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 237, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/addons/mail/mail_thread.py\", line 377, in create\r\n    thread_id = super(mail_thread, self).create(cr, uid, values, context=context)\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 237, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 332, in old_api\r\n    result = method(recs, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/openerp/models.py\", line 3994, in create\r\n    record = self.browse(self._create(old_vals))\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 235, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 464, in new_api\r\n    result = method(self._model, cr, uid, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/openerp/models.py\", line 4050, in _create\r\n    record_id = self.pool[table].create(cr, user, tocreate[table], context=context)\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 237, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 332, in old_api\r\n    result = method(recs, *args, **kwargs)\r\n  File \"/opt/odoo/v8/odoomrp-wip/product_variant_default_code/models/product.py\", line 106, in create\r\n    return super(ProductTemplate, self).create(vals)\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 235, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 464, in new_api\r\n    result = method(self._model, cr, uid, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/addons/product/product.py\", line 709, in create\r\n    product_template_id = super(product_template, self).create(cr, uid, vals, context=context)\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 237, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/addons/mail/mail_thread.py\", line 377, in create\r\n    thread_id = super(mail_thread, self).create(cr, uid, values, context=context)\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 237, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 332, in old_api\r\n    result = method(recs, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/openerp/models.py\", line 3994, in create\r\n    record = self.browse(self._create(old_vals))\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 235, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/openerp/api.py\", line 464, in new_api\r\n    result = method(self._model, cr, uid, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/openerp/models.py\", line 4132, in _create\r\n    tuple([u[2] for u in updates if len(u) > 2])\r\n  File \"/opt/odoo/v8/core/openerp/sql_db.py\", line 158, in wrapper\r\n    return f(self, *args, **kwargs)\r\n  File \"/opt/odoo/v8/core/openerp/sql_db.py\", line 234, in execute\r\n    res = self._obj.execute(query, params)\r\nValueError: \"null value in column \"name\" violates not-null constraint\r\nDETAIL:  Failing row contains (136, null, null, 1.0, null, null, null, 1, fixed, 1, null, 2015-01-04 13:36:30.744055, 1.0, 1, f, null, null, 1, null, 1, consu, null, null, null, 2015-01-04 13:36:30.744055, t, 1, t, null, null, null, null, null, null, f, 7, f, f, null, f, 1, t, f, f, empty, null, null, null, null, null, f, null, null, null, null, null, no-message, no-message, null, 1.0, null).\r\n\" while evaluating\r\nu'action_confirm()'\r\n```"},"comment":{"url":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/comments/68685960","html_url":"https://github.com/odoomrp/odoomrp-wip/issues/506#issuecomment-68685960","issue_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/506","id":68685960,"user":{"login":"oihane","id":2323616,"avatar_url":"https://avatars.githubusercontent.com/u/2323616?v=3","gravatar_id":"","url":"https://api.github.com/users/oihane","html_url":"https://github.com/oihane","followers_url":"https://api.github.com/users/oihane/followers","following_url":"https://api.github.com/users/oihane/following{/other_user}","gists_url":"https://api.github.com/users/oihane/gists{/gist_id}","starred_url":"https://api.github.com/users/oihane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oihane/subscriptions","organizations_url":"https://api.github.com/users/oihane/orgs","repos_url":"https://api.github.com/users/oihane/repos","events_url":"https://api.github.com/users/oihane/events{/privacy}","received_events_url":"https://api.github.com/users/oihane/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T09:41:34Z","updated_at":"2015-01-05T09:41:34Z","body":"Pues algo raro hay, ya que se esta creando un ProductTemplate, y eso el de variantes no lo hace, ya que se basa en que existe el Template.\r\nY no sé como reproducir el error que se reporta aquí.\r\n\r\n@ybofr could you please extend the issue? Tell us which product.template were you using, or which MO is the one giving this error. I was not able to replicate the error. Thanks in advance\r\n"}}