{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/19096","repository_url":"https://api.github.com/repos/odoo/odoo","labels_url":"https://api.github.com/repos/odoo/odoo/issues/19096/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/19096/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/19096/events","html_url":"https://github.com/odoo/odoo/issues/19096","id":253225488,"node_id":"MDU6SXNzdWUyNTMyMjU0ODg=","number":19096,"title":"readonly fields in wizards - master - wishlist I guess","user":{"login":"gdgellatly","id":5093264,"node_id":"MDQ6VXNlcjUwOTMyNjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/5093264?v=4","gravatar_id":"","url":"https://api.github.com/users/gdgellatly","html_url":"https://github.com/gdgellatly","followers_url":"https://api.github.com/users/gdgellatly/followers","following_url":"https://api.github.com/users/gdgellatly/following{/other_user}","gists_url":"https://api.github.com/users/gdgellatly/gists{/gist_id}","starred_url":"https://api.github.com/users/gdgellatly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdgellatly/subscriptions","organizations_url":"https://api.github.com/users/gdgellatly/orgs","repos_url":"https://api.github.com/users/gdgellatly/repos","events_url":"https://api.github.com/users/gdgellatly/events{/privacy}","received_events_url":"https://api.github.com/users/gdgellatly/received_events","type":"User","site_admin":false},"labels":[{"id":616698546,"node_id":"MDU6TGFiZWw2MTY2OTg1NDY=","url":"https://api.github.com/repos/odoo/odoo/labels/Framework","name":"Framework","color":"E5E970","default":false},{"id":99269638,"node_id":"MDU6TGFiZWw5OTI2OTYzOA==","url":"https://api.github.com/repos/odoo/odoo/labels/Wishlist","name":"Wishlist","color":"84b6eb","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-08-28T04:46:10Z","updated_at":"2018-09-13T09:26:40Z","closed_at":"2018-09-13T09:26:40Z","author_association":"CONTRIBUTOR","body":"Impacted versions: master\r\n\r\nSteps to reproduce:\r\nThe new readonly fields behave differently to v10 in master.  It is a common use case (e.g stock returns) to populate a wizard with fields from the source model as essentially informational, but to access them on the completion of a wizard to perform some update (especially a relational field such as the associated picking line).\r\n\r\nUnder the new behaviour, this doesn't work and requires you to use the presently undocumented attribute force_save=\"1\".\r\n\r\nFrom a migration / development perspective and given that in every case for a wizard readonly field force_save is harmless, I think for wizards in particular, this behaviour should be considered to be made default.\r\n\r\nOther alternatives are\r\n- just to document force_save but that was some painful debugging.\r\n- consider combining readonly and force_save into an attribute like user_readonly  - EDIT: actually that idea is dumb, as readonly can also be set on field\r\n\r\nWhen this is released, you will want this covered before the issue reports come in.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/420943149","html_url":"https://github.com/odoo/odoo/issues/19096#issuecomment-420943149","issue_url":"https://api.github.com/repos/odoo/odoo/issues/19096","id":420943149,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDk0MzE0OQ==","user":{"login":"gdgellatly","id":5093264,"node_id":"MDQ6VXNlcjUwOTMyNjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/5093264?v=4","gravatar_id":"","url":"https://api.github.com/users/gdgellatly","html_url":"https://github.com/gdgellatly","followers_url":"https://api.github.com/users/gdgellatly/followers","following_url":"https://api.github.com/users/gdgellatly/following{/other_user}","gists_url":"https://api.github.com/users/gdgellatly/gists{/gist_id}","starred_url":"https://api.github.com/users/gdgellatly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdgellatly/subscriptions","organizations_url":"https://api.github.com/users/gdgellatly/orgs","repos_url":"https://api.github.com/users/gdgellatly/repos","events_url":"https://api.github.com/users/gdgellatly/events{/privacy}","received_events_url":"https://api.github.com/users/gdgellatly/received_events","type":"User","site_admin":false},"created_at":"2018-09-13T09:26:40Z","updated_at":"2018-09-13T09:26:40Z","author_association":"CONTRIBUTOR","body":"I kind of don't run into this anymore, maybe its fixed, maybe I'm fixed."}}
{"actor":{"display_login":"gdgellatly"}}