{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/web/pulls/comments/78711646","id":78711646,"diff_hunk":"@@ -50,15 +53,25 @@ field_label_y_axis\n     Use another field to display in the table header\n field_value\n     Show this field as value\n+field_editability\n+    Use this field to evaluate if a cell should be editable or not. It","path":"web_widget_x2many_2d_matrix/README.rst","position":33,"original_position":33,"commit_id":"9c70345931fb7ef976e70e6c87c1965442cc66ca","original_commit_id":"9c70345931fb7ef976e70e6c87c1965442cc66ca","user":{"login":"hbrunn","id":2563186,"avatar_url":"https://avatars.githubusercontent.com/u/2563186?v=3","gravatar_id":"","url":"https://api.github.com/users/hbrunn","html_url":"https://github.com/hbrunn","followers_url":"https://api.github.com/users/hbrunn/followers","following_url":"https://api.github.com/users/hbrunn/following{/other_user}","gists_url":"https://api.github.com/users/hbrunn/gists{/gist_id}","starred_url":"https://api.github.com/users/hbrunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbrunn/subscriptions","organizations_url":"https://api.github.com/users/hbrunn/orgs","repos_url":"https://api.github.com/users/hbrunn/repos","events_url":"https://api.github.com/users/hbrunn/events{/privacy}","received_events_url":"https://api.github.com/users/hbrunn/received_events","type":"User","site_admin":false},"body":"imagine I can return\r\n\r\n```python\r\n{\r\n    'disabled': 'disabled', # that's what you need\r\n    'class': 'some class', # we can add some fancyness per field\r\n    'onwhatever': 'injected javascript', # might be helpful in some use cases\r\n    'style': 'display: none', # or just hide it?\r\n    'out of ideas': 'but theres probably more cool stuff to do with this',\r\n}\r\n```\r\n\r\nand all keys become attributes of the input. Very flexible.","created_at":"2016-09-14T09:05:51Z","updated_at":"2016-09-14T09:05:52Z","html_url":"https://github.com/OCA/web/pull/420#discussion_r78711646","pull_request_url":"https://api.github.com/repos/OCA/web/pulls/420","_links":{"self":{"href":"https://api.github.com/repos/OCA/web/pulls/comments/78711646"},"html":{"href":"https://github.com/OCA/web/pull/420#discussion_r78711646"},"pull_request":{"href":"https://api.github.com/repos/OCA/web/pulls/420"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/web/pulls/420","id":85180566,"html_url":"https://github.com/OCA/web/pull/420","diff_url":"https://github.com/OCA/web/pull/420.diff","patch_url":"https://github.com/OCA/web/pull/420.patch","issue_url":"https://api.github.com/repos/OCA/web/issues/420","number":420,"state":"open","locked":false,"title":"[IMP] web_widget_x2many_2d_matrix: New option field_editability","user":{"login":"pedrobaeza","id":7165771,"avatar_url":"https://avatars.githubusercontent.com/u/7165771?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrobaeza","html_url":"https://github.com/pedrobaeza","followers_url":"https://api.github.com/users/pedrobaeza/followers","following_url":"https://api.github.com/users/pedrobaeza/following{/other_user}","gists_url":"https://api.github.com/users/pedrobaeza/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrobaeza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrobaeza/subscriptions","organizations_url":"https://api.github.com/users/pedrobaeza/orgs","repos_url":"https://api.github.com/users/pedrobaeza/repos","events_url":"https://api.github.com/users/pedrobaeza/events{/privacy}","received_events_url":"https://api.github.com/users/pedrobaeza/received_events","type":"User","site_admin":false},"body":"Adding this option to the widget, you can define a field in the x2many\r\nmodel that is evaluated for enabling or not the field in the matrix.\r\nWith this, you have a way to control if some matrix combinations are\r\nnot allowed.\r\n\r\nNOTE: This doesn't prevent to require to fill the full matrix with\r\nall the combination records.","created_at":"2016-09-14T07:44:47Z","updated_at":"2016-09-14T09:05:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0174ae77095b8ad189083669e82d69384d71fac7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/OCA/web/pulls/420/commits","review_comments_url":"https://api.github.com/repos/OCA/web/pulls/420/comments","review_comment_url":"https://api.github.com/repos/OCA/web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/web/issues/420/comments","statuses_url":"https://api.github.com/repos/OCA/web/statuses/9c70345931fb7ef976e70e6c87c1965442cc66ca","head":{"label":"Tecnativa:8.0-web_widget_x2many_2d_matrix-field_editability","ref":"8.0-web_widget_x2many_2d_matrix-field_editability","sha":"9c70345931fb7ef976e70e6c87c1965442cc66ca","user":{"login":"Tecnativa","id":18120193,"avatar_url":"https://avatars.githubusercontent.com/u/18120193?v=3","gravatar_id":"","url":"https://api.github.com/users/Tecnativa","html_url":"https://github.com/Tecnativa","followers_url":"https://api.github.com/users/Tecnativa/followers","following_url":"https://api.github.com/users/Tecnativa/following{/other_user}","gists_url":"https://api.github.com/users/Tecnativa/gists{/gist_id}","starred_url":"https://api.github.com/users/Tecnativa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tecnativa/subscriptions","organizations_url":"https://api.github.com/users/Tecnativa/orgs","repos_url":"https://api.github.com/users/Tecnativa/repos","events_url":"https://api.github.com/users/Tecnativa/events{/privacy}","received_events_url":"https://api.github.com/users/Tecnativa/received_events","type":"Organization","site_admin":false},"repo":{"id":63778346,"name":"web","full_name":"Tecnativa/web","owner":{"login":"Tecnativa","id":18120193,"avatar_url":"https://avatars.githubusercontent.com/u/18120193?v=3","gravatar_id":"","url":"https://api.github.com/users/Tecnativa","html_url":"https://github.com/Tecnativa","followers_url":"https://api.github.com/users/Tecnativa/followers","following_url":"https://api.github.com/users/Tecnativa/following{/other_user}","gists_url":"https://api.github.com/users/Tecnativa/gists{/gist_id}","starred_url":"https://api.github.com/users/Tecnativa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tecnativa/subscriptions","organizations_url":"https://api.github.com/users/Tecnativa/orgs","repos_url":"https://api.github.com/users/Tecnativa/repos","events_url":"https://api.github.com/users/Tecnativa/events{/privacy}","received_events_url":"https://api.github.com/users/Tecnativa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Tecnativa/web","description":"Odoo web client UI related addons","fork":true,"url":"https://api.github.com/repos/Tecnativa/web","forks_url":"https://api.github.com/repos/Tecnativa/web/forks","keys_url":"https://api.github.com/repos/Tecnativa/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tecnativa/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tecnativa/web/teams","hooks_url":"https://api.github.com/repos/Tecnativa/web/hooks","issue_events_url":"https://api.github.com/repos/Tecnativa/web/issues/events{/number}","events_url":"https://api.github.com/repos/Tecnativa/web/events","assignees_url":"https://api.github.com/repos/Tecnativa/web/assignees{/user}","branches_url":"https://api.github.com/repos/Tecnativa/web/branches{/branch}","tags_url":"https://api.github.com/repos/Tecnativa/web/tags","blobs_url":"https://api.github.com/repos/Tecnativa/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tecnativa/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tecnativa/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tecnativa/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tecnativa/web/statuses/{sha}","languages_url":"https://api.github.com/repos/Tecnativa/web/languages","stargazers_url":"https://api.github.com/repos/Tecnativa/web/stargazers","contributors_url":"https://api.github.com/repos/Tecnativa/web/contributors","subscribers_url":"https://api.github.com/repos/Tecnativa/web/subscribers","subscription_url":"https://api.github.com/repos/Tecnativa/web/subscription","commits_url":"https://api.github.com/repos/Tecnativa/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tecnativa/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tecnativa/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tecnativa/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tecnativa/web/contents/{+path}","compare_url":"https://api.github.com/repos/Tecnativa/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tecnativa/web/merges","archive_url":"https://api.github.com/repos/Tecnativa/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tecnativa/web/downloads","issues_url":"https://api.github.com/repos/Tecnativa/web/issues{/number}","pulls_url":"https://api.github.com/repos/Tecnativa/web/pulls{/number}","milestones_url":"https://api.github.com/repos/Tecnativa/web/milestones{/number}","notifications_url":"https://api.github.com/repos/Tecnativa/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tecnativa/web/labels{/name}","releases_url":"https://api.github.com/repos/Tecnativa/web/releases{/id}","deployments_url":"https://api.github.com/repos/Tecnativa/web/deployments","created_at":"2016-07-20T12:08:17Z","updated_at":"2016-07-20T12:08:19Z","pushed_at":"2016-09-14T07:44:28Z","git_url":"git://github.com/Tecnativa/web.git","ssh_url":"git@github.com:Tecnativa/web.git","clone_url":"https://github.com/Tecnativa/web.git","svn_url":"https://github.com/Tecnativa/web","homepage":"","size":9223,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"9.0"}},"base":{"label":"OCA:8.0","ref":"8.0","sha":"ce0592c5982aeb6374586fdd379914c4f10feba8","user":{"login":"OCA","id":7600578,"avatar_url":"https://avatars.githubusercontent.com/u/7600578?v=3","gravatar_id":"","url":"https://api.github.com/users/OCA","html_url":"https://github.com/OCA","followers_url":"https://api.github.com/users/OCA/followers","following_url":"https://api.github.com/users/OCA/following{/other_user}","gists_url":"https://api.github.com/users/OCA/gists{/gist_id}","starred_url":"https://api.github.com/users/OCA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCA/subscriptions","organizations_url":"https://api.github.com/users/OCA/orgs","repos_url":"https://api.github.com/users/OCA/repos","events_url":"https://api.github.com/users/OCA/events{/privacy}","received_events_url":"https://api.github.com/users/OCA/received_events","type":"Organization","site_admin":false},"repo":{"id":20895915,"name":"web","full_name":"OCA/web","owner":{"login":"OCA","id":7600578,"avatar_url":"https://avatars.githubusercontent.com/u/7600578?v=3","gravatar_id":"","url":"https://api.github.com/users/OCA","html_url":"https://github.com/OCA","followers_url":"https://api.github.com/users/OCA/followers","following_url":"https://api.github.com/users/OCA/following{/other_user}","gists_url":"https://api.github.com/users/OCA/gists{/gist_id}","starred_url":"https://api.github.com/users/OCA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCA/subscriptions","organizations_url":"https://api.github.com/users/OCA/orgs","repos_url":"https://api.github.com/users/OCA/repos","events_url":"https://api.github.com/users/OCA/events{/privacy}","received_events_url":"https://api.github.com/users/OCA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OCA/web","description":"Odoo web client UI related addons","fork":false,"url":"https://api.github.com/repos/OCA/web","forks_url":"https://api.github.com/repos/OCA/web/forks","keys_url":"https://api.github.com/repos/OCA/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/web/teams","hooks_url":"https://api.github.com/repos/OCA/web/hooks","issue_events_url":"https://api.github.com/repos/OCA/web/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/web/events","assignees_url":"https://api.github.com/repos/OCA/web/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/web/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/web/tags","blobs_url":"https://api.github.com/repos/OCA/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/web/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/web/languages","stargazers_url":"https://api.github.com/repos/OCA/web/stargazers","contributors_url":"https://api.github.com/repos/OCA/web/contributors","subscribers_url":"https://api.github.com/repos/OCA/web/subscribers","subscription_url":"https://api.github.com/repos/OCA/web/subscription","commits_url":"https://api.github.com/repos/OCA/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/web/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/web/merges","archive_url":"https://api.github.com/repos/OCA/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/web/downloads","issues_url":"https://api.github.com/repos/OCA/web/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/web/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/web/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/web/labels{/name}","releases_url":"https://api.github.com/repos/OCA/web/releases{/id}","deployments_url":"https://api.github.com/repos/OCA/web/deployments","created_at":"2014-06-16T18:34:12Z","updated_at":"2016-09-02T11:12:18Z","pushed_at":"2016-09-14T07:44:47Z","git_url":"git://github.com/OCA/web.git","ssh_url":"git@github.com:OCA/web.git","clone_url":"https://github.com/OCA/web.git","svn_url":"https://github.com/OCA/web","homepage":"","size":15882,"stargazers_count":107,"watchers_count":107,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":313,"mirror_url":null,"open_issues_count":98,"forks":313,"open_issues":98,"watchers":107,"default_branch":"9.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/web/pulls/420"},"html":{"href":"https://github.com/OCA/web/pull/420"},"issue":{"href":"https://api.github.com/repos/OCA/web/issues/420"},"comments":{"href":"https://api.github.com/repos/OCA/web/issues/420/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/web/pulls/420/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/web/pulls/420/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/web/statuses/9c70345931fb7ef976e70e6c87c1965442cc66ca"}}}}
{"actor":{"display_login":"hbrunn"}}