{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/8544","labels_url":"https://api.github.com/repos/odoo/odoo/issues/8544/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/8544/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/8544/events","html_url":"https://github.com/odoo/odoo/pull/8544","id":106703225,"number":8544,"title":"stock.quant do not have write permission to any group","user":{"login":"bizzappdev","id":4273984,"avatar_url":"https://avatars.githubusercontent.com/u/4273984?v=3","gravatar_id":"","url":"https://api.github.com/users/bizzappdev","html_url":"https://github.com/bizzappdev","followers_url":"https://api.github.com/users/bizzappdev/followers","following_url":"https://api.github.com/users/bizzappdev/following{/other_user}","gists_url":"https://api.github.com/users/bizzappdev/gists{/gist_id}","starred_url":"https://api.github.com/users/bizzappdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bizzappdev/subscriptions","organizations_url":"https://api.github.com/users/bizzappdev/orgs","repos_url":"https://api.github.com/users/bizzappdev/repos","events_url":"https://api.github.com/users/bizzappdev/events{/privacy}","received_events_url":"https://api.github.com/users/bizzappdev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-16T05:51:30Z","updated_at":"2015-09-21T14:41:11Z","closed_at":"2015-09-21T14:41:11Z","pull_request":{"url":"https://api.github.com/repos/odoo/odoo/pulls/8544","html_url":"https://github.com/odoo/odoo/pull/8544","diff_url":"https://github.com/odoo/odoo/pull/8544.diff","patch_url":"https://github.com/odoo/odoo/pull/8544.patch"},"body":"stock.quant object do not have write access rights for any group and in stock_landed_cost there is a code which write cost value to quant with logged in user uid.\r\n\r\nSo there are 2 ways to solve this problem,\r\n1. give access right for write to stockmanager/user for stock.quant\r\n2. use speruser uid for writing.\r\n\r\nin this PR I am using 2nd option.\r\nalso removed print statement"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/142002554","html_url":"https://github.com/odoo/odoo/pull/8544#issuecomment-142002554","issue_url":"https://api.github.com/repos/odoo/odoo/issues/8544","id":142002554,"user":{"login":"mart-e","id":564822,"avatar_url":"https://avatars.githubusercontent.com/u/564822?v=3","gravatar_id":"","url":"https://api.github.com/users/mart-e","html_url":"https://github.com/mart-e","followers_url":"https://api.github.com/users/mart-e/followers","following_url":"https://api.github.com/users/mart-e/following{/other_user}","gists_url":"https://api.github.com/users/mart-e/gists{/gist_id}","starred_url":"https://api.github.com/users/mart-e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mart-e/subscriptions","organizations_url":"https://api.github.com/users/mart-e/orgs","repos_url":"https://api.github.com/users/mart-e/repos","events_url":"https://api.github.com/users/mart-e/events{/privacy}","received_events_url":"https://api.github.com/users/mart-e/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T14:41:11Z","updated_at":"2015-09-21T14:41:11Z","body":"Thank you for the fix, merged at 61300ee"}}