{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/8688","labels_url":"https://api.github.com/repos/odoo/odoo/issues/8688/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/8688/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/8688/events","html_url":"https://github.com/odoo/odoo/issues/8688","id":107975651,"number":8688,"title":"[9.0] Bill of Materials: Product Variant Error","user":{"login":"jnegrete","id":4744682,"avatar_url":"https://avatars.githubusercontent.com/u/4744682?v=3","gravatar_id":"","url":"https://api.github.com/users/jnegrete","html_url":"https://github.com/jnegrete","followers_url":"https://api.github.com/users/jnegrete/followers","following_url":"https://api.github.com/users/jnegrete/following{/other_user}","gists_url":"https://api.github.com/users/jnegrete/gists{/gist_id}","starred_url":"https://api.github.com/users/jnegrete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnegrete/subscriptions","organizations_url":"https://api.github.com/users/jnegrete/orgs","repos_url":"https://api.github.com/users/jnegrete/repos","events_url":"https://api.github.com/users/jnegrete/events{/privacy}","received_events_url":"https://api.github.com/users/jnegrete/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-23T18:11:24Z","updated_at":"2015-09-28T15:54:06Z","closed_at":null,"body":"Throw a JavaScript error when clicking on bom's product variant many2one field.\r\nError: Expected \")\", got \"]\"\r\n\r\n![error variant in bom](https://cloud.githubusercontent.com/assets/4744682/10053677/0c43a218-61f3-11e5-9ee1-3865f297afe1.png)\r\n\r\nFix:\r\nAdd \")\" to product_id domain at mrp_bom class\r\n\r\nbefore:\r\n'product_id': fields.many2one('product.product', 'Product Variant',\r\n            domain=\"['&', ('product_tmpl_id','=',product_tmpl_id), ('type', 'in', ['product', 'consu']]\",\r\n            help=\"If a product variant is defined the BOM is available only for this product.\"),\r\n\r\nafter:\r\n'product_id': fields.many2one('product.product', 'Product Variant',\r\n            domain=\"['&', ('product_tmpl_id','=',product_tmpl_id), ('type', 'in', ['product', 'consu'])]\",\r\n            help=\"If a product variant is defined the BOM is available only for this product.\"),"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/143786543","html_url":"https://github.com/odoo/odoo/issues/8688#issuecomment-143786543","issue_url":"https://api.github.com/repos/odoo/odoo/issues/8688","id":143786543,"user":{"login":"jco-odoo","id":3832699,"avatar_url":"https://avatars.githubusercontent.com/u/3832699?v=3","gravatar_id":"","url":"https://api.github.com/users/jco-odoo","html_url":"https://github.com/jco-odoo","followers_url":"https://api.github.com/users/jco-odoo/followers","following_url":"https://api.github.com/users/jco-odoo/following{/other_user}","gists_url":"https://api.github.com/users/jco-odoo/gists{/gist_id}","starred_url":"https://api.github.com/users/jco-odoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jco-odoo/subscriptions","organizations_url":"https://api.github.com/users/jco-odoo/orgs","repos_url":"https://api.github.com/users/jco-odoo/repos","events_url":"https://api.github.com/users/jco-odoo/events{/privacy}","received_events_url":"https://api.github.com/users/jco-odoo/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T15:54:06Z","updated_at":"2015-09-28T15:54:06Z","body":"Not solved in the meantime?"}}