{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/web/pulls/comments/194834039","pull_request_review_id":128081190,"id":194834039,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDgzNDAzOQ==","diff_hunk":"@@ -0,0 +1,37 @@\n+/* Copyright 2016 Onestein\n+ * License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */\n+\n+odoo.define('web_x2many_delete_all.Mixin', function (require) {\n+    \"use strict\";\n+    var core = require('web.core');\n+    var _t = core._t;\n+    var ListRenderer = require('web.ListRenderer');\n+    \n+    ListRenderer.include({\n+        events: _.extend({}, ListRenderer.prototype.events, {\n+            'click thead .o_list_record_delete_all': '_onTrashAllIconClick',\n+        }),\n+        _renderHeader: function (isGrouped) {\n+            var $header = this._super.apply(this, arguments);\n+            if (this.addTrashIcon) {\n+                $header.find('tr').append(this._renderDeleteAll('th'));\n+            }\n+            return $header;\n+        },\n+        _renderDeleteAll: function (tag) {\n+            var $icon = $('<button>', {class: 'fa fa-trash-o o_list_record_delete_all_btn', name: 'delete all',\n+                'aria-label': _t('Delete All ')});\n+            return $('<th>', {class: 'o_list_record_delete_all'}).append($icon);\n+        },\n+        _onTrashAllIconClick: function (event) {\n+            event.stopPropagation();\n+            var self = this;\n+            var resIDs = _.map(self.$('tbody  tr.o_data_row'), function(rowID) {\n+                return $(rowID).data('id')\n+            });\n+            _.each(resIDs, function(row_id){\n+                self.trigger_up('list_record_delete', {id: row_id});\n+            })\n+        },\n+    })\n+});","path":"web_x2many_delete_all/static/src/js/web_x2many_delete_all.js","position":37,"original_position":37,"commit_id":"9923fe06907a86800948299e8d307ffd4552d12b","original_commit_id":"c7c1501764834795241d2b9e918b0097753d7449","user":{"login":"MeetKD","id":37578829,"node_id":"MDQ6VXNlcjM3NTc4ODI5","avatar_url":"https://avatars2.githubusercontent.com/u/37578829?v=4","gravatar_id":"","url":"https://api.github.com/users/MeetKD","html_url":"https://github.com/MeetKD","followers_url":"https://api.github.com/users/MeetKD/followers","following_url":"https://api.github.com/users/MeetKD/following{/other_user}","gists_url":"https://api.github.com/users/MeetKD/gists{/gist_id}","starred_url":"https://api.github.com/users/MeetKD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MeetKD/subscriptions","organizations_url":"https://api.github.com/users/MeetKD/orgs","repos_url":"https://api.github.com/users/MeetKD/repos","events_url":"https://api.github.com/users/MeetKD/events{/privacy}","received_events_url":"https://api.github.com/users/MeetKD/received_events","type":"User","site_admin":false},"body":"Done. !","created_at":"2018-06-12T17:58:48Z","updated_at":"2018-06-12T17:58:48Z","html_url":"https://github.com/OCA/web/pull/949#discussion_r194834039","pull_request_url":"https://api.github.com/repos/OCA/web/pulls/949","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/OCA/web/pulls/comments/194834039"},"html":{"href":"https://github.com/OCA/web/pull/949#discussion_r194834039"},"pull_request":{"href":"https://api.github.com/repos/OCA/web/pulls/949"}},"in_reply_to_id":194672404},"pull_request":{"url":"https://api.github.com/repos/OCA/web/pulls/949","id":193788843,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzNzg4ODQz","html_url":"https://github.com/OCA/web/pull/949","diff_url":"https://github.com/OCA/web/pull/949.diff","patch_url":"https://github.com/OCA/web/pull/949.patch","issue_url":"https://api.github.com/repos/OCA/web/issues/949","number":949,"state":"open","locked":false,"title":"Migrate x2m delete all in v11.","user":{"login":"MeetKD","id":37578829,"node_id":"MDQ6VXNlcjM3NTc4ODI5","avatar_url":"https://avatars2.githubusercontent.com/u/37578829?v=4","gravatar_id":"","url":"https://api.github.com/users/MeetKD","html_url":"https://github.com/MeetKD","followers_url":"https://api.github.com/users/MeetKD/followers","following_url":"https://api.github.com/users/MeetKD/following{/other_user}","gists_url":"https://api.github.com/users/MeetKD/gists{/gist_id}","starred_url":"https://api.github.com/users/MeetKD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MeetKD/subscriptions","organizations_url":"https://api.github.com/users/MeetKD/orgs","repos_url":"https://api.github.com/users/MeetKD/repos","events_url":"https://api.github.com/users/MeetKD/events{/privacy}","received_events_url":"https://api.github.com/users/MeetKD/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-09T17:46:03Z","updated_at":"2018-06-12T17:58:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd954be62172b077ae7071c252b12b4d7a820ea0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":121865831,"node_id":"MDU6TGFiZWwxMjE4NjU4MzE=","url":"https://api.github.com/repos/OCA/web/labels/work%20in%20progress","name":"work in progress","color":"0052cc","default":false}],"milestone":{"url":"https://api.github.com/repos/OCA/web/milestones/6","html_url":"https://github.com/OCA/web/milestone/6","labels_url":"https://api.github.com/repos/OCA/web/milestones/6/labels","id":2810771,"node_id":"MDk6TWlsZXN0b25lMjgxMDc3MQ==","number":6,"title":"11.0","description":null,"creator":{"login":"pedrobaeza","id":7165771,"node_id":"MDQ6VXNlcjcxNjU3NzE=","avatar_url":"https://avatars2.githubusercontent.com/u/7165771?v=4","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},"open_issues":10,"closed_issues":40,"state":"open","created_at":"2017-10-03T15:06:48Z","updated_at":"2018-06-12T09:29:58Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/OCA/web/pulls/949/commits","review_comments_url":"https://api.github.com/repos/OCA/web/pulls/949/comments","review_comment_url":"https://api.github.com/repos/OCA/web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/web/issues/949/comments","statuses_url":"https://api.github.com/repos/OCA/web/statuses/9923fe06907a86800948299e8d307ffd4552d12b","head":{"label":"MeetKD:11_x2m_delete_all","ref":"11_x2m_delete_all","sha":"9923fe06907a86800948299e8d307ffd4552d12b","user":{"login":"MeetKD","id":37578829,"node_id":"MDQ6VXNlcjM3NTc4ODI5","avatar_url":"https://avatars2.githubusercontent.com/u/37578829?v=4","gravatar_id":"","url":"https://api.github.com/users/MeetKD","html_url":"https://github.com/MeetKD","followers_url":"https://api.github.com/users/MeetKD/followers","following_url":"https://api.github.com/users/MeetKD/following{/other_user}","gists_url":"https://api.github.com/users/MeetKD/gists{/gist_id}","starred_url":"https://api.github.com/users/MeetKD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MeetKD/subscriptions","organizations_url":"https://api.github.com/users/MeetKD/orgs","repos_url":"https://api.github.com/users/MeetKD/repos","events_url":"https://api.github.com/users/MeetKD/events{/privacy}","received_events_url":"https://api.github.com/users/MeetKD/received_events","type":"User","site_admin":false},"repo":{"id":136744820,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY3NDQ4MjA=","name":"web","full_name":"MeetKD/web","owner":{"login":"MeetKD","id":37578829,"node_id":"MDQ6VXNlcjM3NTc4ODI5","avatar_url":"https://avatars2.githubusercontent.com/u/37578829?v=4","gravatar_id":"","url":"https://api.github.com/users/MeetKD","html_url":"https://github.com/MeetKD","followers_url":"https://api.github.com/users/MeetKD/followers","following_url":"https://api.github.com/users/MeetKD/following{/other_user}","gists_url":"https://api.github.com/users/MeetKD/gists{/gist_id}","starred_url":"https://api.github.com/users/MeetKD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MeetKD/subscriptions","organizations_url":"https://api.github.com/users/MeetKD/orgs","repos_url":"https://api.github.com/users/MeetKD/repos","events_url":"https://api.github.com/users/MeetKD/events{/privacy}","received_events_url":"https://api.github.com/users/MeetKD/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MeetKD/web","description":"Odoo web client UI related addons","fork":true,"url":"https://api.github.com/repos/MeetKD/web","forks_url":"https://api.github.com/repos/MeetKD/web/forks","keys_url":"https://api.github.com/repos/MeetKD/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MeetKD/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MeetKD/web/teams","hooks_url":"https://api.github.com/repos/MeetKD/web/hooks","issue_events_url":"https://api.github.com/repos/MeetKD/web/issues/events{/number}","events_url":"https://api.github.com/repos/MeetKD/web/events","assignees_url":"https://api.github.com/repos/MeetKD/web/assignees{/user}","branches_url":"https://api.github.com/repos/MeetKD/web/branches{/branch}","tags_url":"https://api.github.com/repos/MeetKD/web/tags","blobs_url":"https://api.github.com/repos/MeetKD/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MeetKD/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MeetKD/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/MeetKD/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MeetKD/web/statuses/{sha}","languages_url":"https://api.github.com/repos/MeetKD/web/languages","stargazers_url":"https://api.github.com/repos/MeetKD/web/stargazers","contributors_url":"https://api.github.com/repos/MeetKD/web/contributors","subscribers_url":"https://api.github.com/repos/MeetKD/web/subscribers","subscription_url":"https://api.github.com/repos/MeetKD/web/subscription","commits_url":"https://api.github.com/repos/MeetKD/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/MeetKD/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/MeetKD/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/MeetKD/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/MeetKD/web/contents/{+path}","compare_url":"https://api.github.com/repos/MeetKD/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MeetKD/web/merges","archive_url":"https://api.github.com/repos/MeetKD/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MeetKD/web/downloads","issues_url":"https://api.github.com/repos/MeetKD/web/issues{/number}","pulls_url":"https://api.github.com/repos/MeetKD/web/pulls{/number}","milestones_url":"https://api.github.com/repos/MeetKD/web/milestones{/number}","notifications_url":"https://api.github.com/repos/MeetKD/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MeetKD/web/labels{/name}","releases_url":"https://api.github.com/repos/MeetKD/web/releases{/id}","deployments_url":"https://api.github.com/repos/MeetKD/web/deployments","created_at":"2018-06-09T17:37:27Z","updated_at":"2018-06-09T17:37:29Z","pushed_at":"2018-06-12T17:55:19Z","git_url":"git://github.com/MeetKD/web.git","ssh_url":"git@github.com:MeetKD/web.git","clone_url":"https://github.com/MeetKD/web.git","svn_url":"https://github.com/MeetKD/web","homepage":"","size":15577,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"11.0"}},"base":{"label":"OCA:11.0","ref":"11.0","sha":"442f5b7d61fb3ad3bf7079f1e78e597d15941e98","user":{"login":"OCA","id":7600578,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc2MDA1Nzg=","avatar_url":"https://avatars1.githubusercontent.com/u/7600578?v=4","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,"node_id":"MDEwOlJlcG9zaXRvcnkyMDg5NTkxNQ==","name":"web","full_name":"OCA/web","owner":{"login":"OCA","id":7600578,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc2MDA1Nzg=","avatar_url":"https://avatars1.githubusercontent.com/u/7600578?v=4","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":"2018-06-12T09:17:05Z","pushed_at":"2018-06-12T17:55:20Z","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":15579,"stargazers_count":248,"watchers_count":248,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":650,"mirror_url":null,"archived":false,"open_issues_count":162,"license":null,"forks":650,"open_issues":162,"watchers":248,"default_branch":"11.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/web/pulls/949"},"html":{"href":"https://github.com/OCA/web/pull/949"},"issue":{"href":"https://api.github.com/repos/OCA/web/issues/949"},"comments":{"href":"https://api.github.com/repos/OCA/web/issues/949/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/web/pulls/949/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/web/pulls/949/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/web/statuses/9923fe06907a86800948299e8d307ffd4552d12b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"MeetKD"}}