{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/8983","labels_url":"https://api.github.com/repos/odoo/odoo/issues/8983/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/8983/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/8983/events","html_url":"https://github.com/odoo/odoo/issues/8983","id":110644545,"number":8983,"title":"bug at models.js on POS","user":{"login":"yelizariev","id":186131,"avatar_url":"https://avatars.githubusercontent.com/u/186131?v=3","gravatar_id":"","url":"https://api.github.com/users/yelizariev","html_url":"https://github.com/yelizariev","followers_url":"https://api.github.com/users/yelizariev/followers","following_url":"https://api.github.com/users/yelizariev/following{/other_user}","gists_url":"https://api.github.com/users/yelizariev/gists{/gist_id}","starred_url":"https://api.github.com/users/yelizariev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yelizariev/subscriptions","organizations_url":"https://api.github.com/users/yelizariev/orgs","repos_url":"https://api.github.com/users/yelizariev/repos","events_url":"https://api.github.com/users/yelizariev/events{/privacy}","received_events_url":"https://api.github.com/users/yelizariev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-09T12:06:05Z","updated_at":"2015-11-20T06:42:13Z","closed_at":null,"body":"load_model function uses context as kwargs if ids parameter is provided:\r\n\r\n\r\n                if( model.model ){\r\n                    if (model.ids) {\r\n                        records = new Model(model.model).call('read',[ids,fields],context);\r\n\r\nhttps://github.com/odoo/odoo/blob/358e285fd8ed75ac322213bd1d3382ff7fc28eba/addons/point_of_sale/static/src/js/models.js#L502\r\n\r\nWhile it doesn't make errors as point_of_sale doesn't use **ids** along with **context** in PosModel.models, it could cause a misunderstanding in custom POS modules \r\n\r\nPossible fix:\r\n\r\n                if( model.model ){\r\n                    if (model.ids) {\r\n                        records = new Model(model.model).call('read',[ids,fields],{'context':context});\r\n\r\nrelated commit: https://github.com/odoo/odoo/commit/1d23c24d79a0759d2832ffc2f10b3469470ce0d7 by @ged-odoo "},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/158296137","html_url":"https://github.com/odoo/odoo/issues/8983#issuecomment-158296137","issue_url":"https://api.github.com/repos/odoo/odoo/issues/8983","id":158296137,"user":{"login":"rafaelbn","id":8736623,"avatar_url":"https://avatars.githubusercontent.com/u/8736623?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelbn","html_url":"https://github.com/rafaelbn","followers_url":"https://api.github.com/users/rafaelbn/followers","following_url":"https://api.github.com/users/rafaelbn/following{/other_user}","gists_url":"https://api.github.com/users/rafaelbn/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelbn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelbn/subscriptions","organizations_url":"https://api.github.com/users/rafaelbn/orgs","repos_url":"https://api.github.com/users/rafaelbn/repos","events_url":"https://api.github.com/users/rafaelbn/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelbn/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T06:42:13Z","updated_at":"2015-11-20T06:42:13Z","body":":+1: "}}