{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/server-tools/pulls/comments/45882479","id":45882479,"diff_hunk":"@@ -96,43 +100,41 @@ def create_action(self, cr, uid, ids, context=None):\n                         \"ir.actions.act_window,\" +\n                         str(vals['ref_ir_act_window'])),\n                     'object': True,\n-                },\n-                context)\n+                }).id\n+        _logger.debug(\"VALS\")\n+        _logger.debug(vals)\n         self.write(\n-            cr, uid, ids,\n             {\n                 'ref_ir_act_window': vals.get('ref_ir_act_window', False),\n                 'ref_ir_value': vals.get('ref_ir_value', False),\n-            },\n-            context)\n+            })\n         return True\n \n-    def unlink_action(self, cr, uid, ids, context=None):\n-        for template in self.browse(cr, uid, ids, context=context):\n+    @api.multi\n+    def unlink_action(self):\n+        for template in self:\n+            template = self\n             try:\n                 if template.ref_ir_act_window:\n                     act_window_obj = self.pool['ir.actions.act_window']\n-                    act_window_obj.unlink(\n-                        cr, SUPERUSER_ID, [template.ref_ir_act_window.id],\n-                        context=context)\n+                    act_window_obj.sudo().unlink([template.ref_ir_act_window.id])\n                 if template.ref_ir_value:\n                     ir_values_obj = self.pool['ir.values']\n-                    ir_values_obj.unlink(\n-                        cr, SUPERUSER_ID, template.ref_ir_value.id,\n-                        context=context)\n+                    ir_values_obj.sudo().unlink(template.ref_ir_value.id)\n             except:\n                 raise orm.except_orm(\n                     _(\"Warning\"),\n                     _(\"Deletion of the action record failed.\"))\n         return True\n+    \n+    @api.multi\n+    def unlink(self):\n+        self.unlink_action()\n+        return super(MassObject, self).unlink()\n \n-    def unlink(self, cr, uid, ids, context=None):\n-        self.unlink_action(cr, uid, ids, context=context)\n-        return super(MassObject, self).unlink(cr, uid, ids, context=context)\n-\n-    def copy(self, cr, uid, record_id, default=None, context=None):\n+    @api.one\n+    def copy(self, default=None):\n         if default is None:\n             default = {}\n         default.update({'name': '', 'field_ids': []})\n-        return super(MassObject, self).copy(\n-            cr, uid, record_id, default, context=context)\n+        return super(MassObject, self).copy(record_id, default)","path":"mass_editing/models/mass_object.py","position":177,"original_position":177,"commit_id":"99930bb08ec9aab29b2487dbc0313075b0de3298","original_commit_id":"99930bb08ec9aab29b2487dbc0313075b0de3298","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":"remove `record_id`","created_at":"2015-11-25T15:51:30Z","updated_at":"2015-11-25T15:51:30Z","html_url":"https://github.com/OCA/server-tools/pull/293#discussion_r45882479","pull_request_url":"https://api.github.com/repos/OCA/server-tools/pulls/293","_links":{"self":{"href":"https://api.github.com/repos/OCA/server-tools/pulls/comments/45882479"},"html":{"href":"https://github.com/OCA/server-tools/pull/293#discussion_r45882479"},"pull_request":{"href":"https://api.github.com/repos/OCA/server-tools/pulls/293"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/server-tools/pulls/293","id":50783948,"html_url":"https://github.com/OCA/server-tools/pull/293","diff_url":"https://github.com/OCA/server-tools/pull/293.diff","patch_url":"https://github.com/OCA/server-tools/pull/293.patch","issue_url":"https://api.github.com/repos/OCA/server-tools/issues/293","number":293,"state":"open","locked":false,"title":"Mass edit migration","user":{"login":"flotho","id":1043935,"avatar_url":"https://avatars.githubusercontent.com/u/1043935?v=3","gravatar_id":"","url":"https://api.github.com/users/flotho","html_url":"https://github.com/flotho","followers_url":"https://api.github.com/users/flotho/followers","following_url":"https://api.github.com/users/flotho/following{/other_user}","gists_url":"https://api.github.com/users/flotho/gists{/gist_id}","starred_url":"https://api.github.com/users/flotho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flotho/subscriptions","organizations_url":"https://api.github.com/users/flotho/orgs","repos_url":"https://api.github.com/users/flotho/repos","events_url":"https://api.github.com/users/flotho/events{/privacy}","received_events_url":"https://api.github.com/users/flotho/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-16T08:49:58Z","updated_at":"2015-11-25T15:51:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"907e3d814707da5e6cd4d3852e1d82756f529aff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OCA/server-tools/pulls/293/commits","review_comments_url":"https://api.github.com/repos/OCA/server-tools/pulls/293/comments","review_comment_url":"https://api.github.com/repos/OCA/server-tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/server-tools/issues/293/comments","statuses_url":"https://api.github.com/repos/OCA/server-tools/statuses/99930bb08ec9aab29b2487dbc0313075b0de3298","head":{"label":"MindAndGo:mass_edit","ref":"mass_edit","sha":"99930bb08ec9aab29b2487dbc0313075b0de3298","user":{"login":"MindAndGo","id":12036097,"avatar_url":"https://avatars.githubusercontent.com/u/12036097?v=3","gravatar_id":"","url":"https://api.github.com/users/MindAndGo","html_url":"https://github.com/MindAndGo","followers_url":"https://api.github.com/users/MindAndGo/followers","following_url":"https://api.github.com/users/MindAndGo/following{/other_user}","gists_url":"https://api.github.com/users/MindAndGo/gists{/gist_id}","starred_url":"https://api.github.com/users/MindAndGo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MindAndGo/subscriptions","organizations_url":"https://api.github.com/users/MindAndGo/orgs","repos_url":"https://api.github.com/users/MindAndGo/repos","events_url":"https://api.github.com/users/MindAndGo/events{/privacy}","received_events_url":"https://api.github.com/users/MindAndGo/received_events","type":"Organization","site_admin":false},"repo":{"id":45868555,"name":"server-tools","full_name":"MindAndGo/server-tools","owner":{"login":"MindAndGo","id":12036097,"avatar_url":"https://avatars.githubusercontent.com/u/12036097?v=3","gravatar_id":"","url":"https://api.github.com/users/MindAndGo","html_url":"https://github.com/MindAndGo","followers_url":"https://api.github.com/users/MindAndGo/followers","following_url":"https://api.github.com/users/MindAndGo/following{/other_user}","gists_url":"https://api.github.com/users/MindAndGo/gists{/gist_id}","starred_url":"https://api.github.com/users/MindAndGo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MindAndGo/subscriptions","organizations_url":"https://api.github.com/users/MindAndGo/orgs","repos_url":"https://api.github.com/users/MindAndGo/repos","events_url":"https://api.github.com/users/MindAndGo/events{/privacy}","received_events_url":"https://api.github.com/users/MindAndGo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MindAndGo/server-tools","description":"Tools for Odoo Administrators to improve some technical features on Odoo.","fork":true,"url":"https://api.github.com/repos/MindAndGo/server-tools","forks_url":"https://api.github.com/repos/MindAndGo/server-tools/forks","keys_url":"https://api.github.com/repos/MindAndGo/server-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MindAndGo/server-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MindAndGo/server-tools/teams","hooks_url":"https://api.github.com/repos/MindAndGo/server-tools/hooks","issue_events_url":"https://api.github.com/repos/MindAndGo/server-tools/issues/events{/number}","events_url":"https://api.github.com/repos/MindAndGo/server-tools/events","assignees_url":"https://api.github.com/repos/MindAndGo/server-tools/assignees{/user}","branches_url":"https://api.github.com/repos/MindAndGo/server-tools/branches{/branch}","tags_url":"https://api.github.com/repos/MindAndGo/server-tools/tags","blobs_url":"https://api.github.com/repos/MindAndGo/server-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MindAndGo/server-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MindAndGo/server-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/MindAndGo/server-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MindAndGo/server-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/MindAndGo/server-tools/languages","stargazers_url":"https://api.github.com/repos/MindAndGo/server-tools/stargazers","contributors_url":"https://api.github.com/repos/MindAndGo/server-tools/contributors","subscribers_url":"https://api.github.com/repos/MindAndGo/server-tools/subscribers","subscription_url":"https://api.github.com/repos/MindAndGo/server-tools/subscription","commits_url":"https://api.github.com/repos/MindAndGo/server-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/MindAndGo/server-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/MindAndGo/server-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/MindAndGo/server-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/MindAndGo/server-tools/contents/{+path}","compare_url":"https://api.github.com/repos/MindAndGo/server-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MindAndGo/server-tools/merges","archive_url":"https://api.github.com/repos/MindAndGo/server-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MindAndGo/server-tools/downloads","issues_url":"https://api.github.com/repos/MindAndGo/server-tools/issues{/number}","pulls_url":"https://api.github.com/repos/MindAndGo/server-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/MindAndGo/server-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/MindAndGo/server-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MindAndGo/server-tools/labels{/name}","releases_url":"https://api.github.com/repos/MindAndGo/server-tools/releases{/id}","created_at":"2015-11-09T21:40:23Z","updated_at":"2015-11-09T21:40:25Z","pushed_at":"2015-11-16T12:03:04Z","git_url":"git://github.com/MindAndGo/server-tools.git","ssh_url":"git@github.com:MindAndGo/server-tools.git","clone_url":"https://github.com/MindAndGo/server-tools.git","svn_url":"https://github.com/MindAndGo/server-tools","homepage":"https://community.odoo.com/project/30","size":10326,"stargazers_count":0,"watchers_count":0,"language":"Python","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:9.0","ref":"9.0","sha":"c7ff5bbebacd0817a0b1fd5b3985c21320bee6b7","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":20896532,"name":"server-tools","full_name":"OCA/server-tools","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/server-tools","description":"Tools for Odoo Administrators to improve some technical features on Odoo.","fork":false,"url":"https://api.github.com/repos/OCA/server-tools","forks_url":"https://api.github.com/repos/OCA/server-tools/forks","keys_url":"https://api.github.com/repos/OCA/server-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/server-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/server-tools/teams","hooks_url":"https://api.github.com/repos/OCA/server-tools/hooks","issue_events_url":"https://api.github.com/repos/OCA/server-tools/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/server-tools/events","assignees_url":"https://api.github.com/repos/OCA/server-tools/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/server-tools/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/server-tools/tags","blobs_url":"https://api.github.com/repos/OCA/server-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/server-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/server-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/server-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/server-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/server-tools/languages","stargazers_url":"https://api.github.com/repos/OCA/server-tools/stargazers","contributors_url":"https://api.github.com/repos/OCA/server-tools/contributors","subscribers_url":"https://api.github.com/repos/OCA/server-tools/subscribers","subscription_url":"https://api.github.com/repos/OCA/server-tools/subscription","commits_url":"https://api.github.com/repos/OCA/server-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/server-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/server-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/server-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/server-tools/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/server-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/server-tools/merges","archive_url":"https://api.github.com/repos/OCA/server-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/server-tools/downloads","issues_url":"https://api.github.com/repos/OCA/server-tools/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/server-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/server-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/server-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/server-tools/labels{/name}","releases_url":"https://api.github.com/repos/OCA/server-tools/releases{/id}","created_at":"2014-06-16T18:52:44Z","updated_at":"2015-11-25T10:52:16Z","pushed_at":"2015-11-25T15:27:34Z","git_url":"git://github.com/OCA/server-tools.git","ssh_url":"git@github.com:OCA/server-tools.git","clone_url":"https://github.com/OCA/server-tools.git","svn_url":"https://github.com/OCA/server-tools","homepage":"https://community.odoo.com/project/30","size":7275,"stargazers_count":79,"watchers_count":79,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":215,"mirror_url":null,"open_issues_count":75,"forks":215,"open_issues":75,"watchers":79,"default_branch":"9.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/server-tools/pulls/293"},"html":{"href":"https://github.com/OCA/server-tools/pull/293"},"issue":{"href":"https://api.github.com/repos/OCA/server-tools/issues/293"},"comments":{"href":"https://api.github.com/repos/OCA/server-tools/issues/293/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/server-tools/pulls/293/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/server-tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/server-tools/pulls/293/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/server-tools/statuses/99930bb08ec9aab29b2487dbc0313075b0de3298"}}}}