{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/8625","labels_url":"https://api.github.com/repos/odoo/odoo/issues/8625/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/8625/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/8625/events","html_url":"https://github.com/odoo/odoo/issues/8625","id":107427932,"number":8625,"title":"[9.0] regression: onchange is not informing we do not have stock.","user":{"login":"nhomar","id":338634,"avatar_url":"https://avatars.githubusercontent.com/u/338634?v=3","gravatar_id":"","url":"https://api.github.com/users/nhomar","html_url":"https://github.com/nhomar","followers_url":"https://api.github.com/users/nhomar/followers","following_url":"https://api.github.com/users/nhomar/following{/other_user}","gists_url":"https://api.github.com/users/nhomar/gists{/gist_id}","starred_url":"https://api.github.com/users/nhomar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhomar/subscriptions","organizations_url":"https://api.github.com/users/nhomar/orgs","repos_url":"https://api.github.com/users/nhomar/repos","events_url":"https://api.github.com/users/nhomar/events{/privacy}","received_events_url":"https://api.github.com/users/nhomar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-09-21T00:55:58Z","updated_at":"2015-09-23T00:38:38Z","closed_at":"2015-09-22T18:39:26Z","body":"Steps to reproduce:\r\n---\r\n\r\n1. Installing sale and sale_stock module.\r\n2. Create a sale order.\r\n3. Set product [C-Case] Computer Case.\r\n\r\nWhat do I expect: Warning informing we do not have enought inventory.\r\nWhat do I get: Product added silently.\r\n\r\nRegards.\r\n\r\nsha: 0ec19af59c6bc5"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/142462750","html_url":"https://github.com/odoo/odoo/issues/8625#issuecomment-142462750","issue_url":"https://api.github.com/repos/odoo/odoo/issues/8625","id":142462750,"user":{"login":"fpodoo","id":6844179,"avatar_url":"https://avatars.githubusercontent.com/u/6844179?v=3","gravatar_id":"","url":"https://api.github.com/users/fpodoo","html_url":"https://github.com/fpodoo","followers_url":"https://api.github.com/users/fpodoo/followers","following_url":"https://api.github.com/users/fpodoo/following{/other_user}","gists_url":"https://api.github.com/users/fpodoo/gists{/gist_id}","starred_url":"https://api.github.com/users/fpodoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpodoo/subscriptions","organizations_url":"https://api.github.com/users/fpodoo/orgs","repos_url":"https://api.github.com/users/fpodoo/repos","events_url":"https://api.github.com/users/fpodoo/events{/privacy}","received_events_url":"https://api.github.com/users/fpodoo/received_events","type":"User","site_admin":false},"created_at":"2015-09-23T00:38:38Z","updated_at":"2015-09-23T00:38:38Z","body":"Yes, we plan to change the mechanism of the on_change for V10. (we are\ncurrently working on a better alternative)\n\nOn Tue, Sep 22, 2015 at 5:20 PM, Graeme Gellatly <notifications@github.com>\nwrote:\n\n> @fpodoo <https://github.com/fpodoo> I have done a community module for\n> years, I think the message was introduced in 6.1 but it is brittle because\n> I always have to detect the exact warning message in the onchange output.\n> To be honest this whole function (product_id_change) has always been a\n> problematic one for me, because it does so much without easy hooks and\n> expects only one way of doing things. It isn't that big a deal, just saves\n> me 10 lines of code and having to check every update that the warning\n> message hasn't changed.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/odoo/odoo/issues/8625#issuecomment-142460892>.\n>\n"}}