{"action":"created","issue":{"url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/1668","repository_url":"https://api.github.com/repos/OCA/OpenUpgrade","labels_url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/1668/labels{/name}","comments_url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/1668/comments","events_url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/1668/events","html_url":"https://github.com/OCA/OpenUpgrade/pull/1668","id":391752272,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM5MTc1NzQ3","number":1668,"title":"[FIX] column \"picking_type_id\" of  \"mrp_production\" already exists","user":{"login":"mourad-ehm","id":15939329,"node_id":"MDQ6VXNlcjE1OTM5MzI5","avatar_url":"https://avatars2.githubusercontent.com/u/15939329?v=4","gravatar_id":"","url":"https://api.github.com/users/mourad-ehm","html_url":"https://github.com/mourad-ehm","followers_url":"https://api.github.com/users/mourad-ehm/followers","following_url":"https://api.github.com/users/mourad-ehm/following{/other_user}","gists_url":"https://api.github.com/users/mourad-ehm/gists{/gist_id}","starred_url":"https://api.github.com/users/mourad-ehm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mourad-ehm/subscriptions","organizations_url":"https://api.github.com/users/mourad-ehm/orgs","repos_url":"https://api.github.com/users/mourad-ehm/repos","events_url":"https://api.github.com/users/mourad-ehm/events{/privacy}","received_events_url":"https://api.github.com/users/mourad-ehm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-17T15:04:38Z","updated_at":"2018-12-17T15:05:54Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/1668","html_url":"https://github.com/OCA/OpenUpgrade/pull/1668","diff_url":"https://github.com/OCA/OpenUpgrade/pull/1668.diff","patch_url":"https://github.com/OCA/OpenUpgrade/pull/1668.patch"},"body":"\r\n    2018-12-17 11:45:13,201 107 DEBUG dix OpenUpgrade: 793065 rows affected\r\n2018-12-17 11:45:13,201 107 INFO dix OpenUpgrade: table mrp_workorder, column sequence: renaming to openupgrade_legacy_10_0_sequence\r\n2018-12-17 11:45:13,202 107 INFO dix OpenUpgrade: table mrp_workorder, column cycle: renaming to openupgrade_legacy_10_0_cycle\r\n2018-12-17 11:45:13,202 107 INFO dix OpenUpgrade: table mrp_workorder, column hour: renaming to openupgrade_legacy_10_0_hour\r\n2018-12-17 11:45:13,203 107 INFO dix OpenUpgrade: table mrp_bom, column date_stop: renaming to openupgrade_legacy_10_0_date_stop\r\n2018-12-17 11:45:13,203 107 INFO dix OpenUpgrade: table stock_move, column consumed_for: renaming to openupgrade_legacy_10_0_consumed_for\r\n2018-12-17 11:45:14,205 107 INFO dix OpenUpgrade: table mrp_routing_workcenter, column hour_nbr: renaming to openupgrade_legacy_10_0_hour_nbr\r\n2018-12-17 11:45:14,207 107 INFO dix OpenUpgrade: table mrp_routing_workcenter, column cycle_nbr: renaming to openupgrade_legacy_10_0_cycle_nbr\r\n2018-12-17 11:45:14,210 107 INFO dix OpenUpgrade: table mrp_bom, column product_uom: renaming to product_uom_id\r\n2018-12-17 11:45:14,237 107 INFO dix OpenUpgrade: table mrp_bom_line, column product_uom: renaming to product_uom_id\r\n2018-12-17 11:45:14,253 107 INFO dix OpenUpgrade: table mrp_production, column date_planned: renaming to date_planned_start\r\n2018-12-17 11:45:14,288 107 INFO dix OpenUpgrade: table mrp_production, column product_uom: renaming to product_uom_id\r\n2018-12-17 11:45:14,310 107 INFO dix OpenUpgrade: table mrp_workcenter, column capacity_per_cycle: renaming to capacity\r\n2018-12-17 11:45:14,317 107 INFO dix odoo.sql_db: bad query: \r\n        ALTER TABLE mrp_production\r\n        ADD COLUMN picking_type_id INTEGER\r\n        \r\n2018-12-17 11:45:14,317 107 ERROR dix OpenUpgrade: mrp: error in migration script mrp/migrations/10.0.2.0/pre-migration.py: ProgrammingError('column \"picking_type_id\" of relation \"mrp_production\" already \r\nexists\\n',)\r\n2018-12-17 11:45:14,317 107 ERROR dix OpenUpgrade: column \"picking_type_id\" of relation \"mrp_production\" already exists\r\nTraceback (most recent call last):\r\n  File \"/src/openupgradelib/openupgradelib/openupgrade.py\", line 1445, in wrapped_function\r\n    if use_env2 else cr, version)\r\n  File \"/odoo/src/addons/mrp/migrations/10.0.2.0/pre-migration.py\", line 171, in migrate\r\n    prepopulate_fields(cr)\r\n  File \"/odoo/src/addons/mrp/migrations/10.0.2.0/pre-migration.py\", line 155, in prepopulate_fields\r\n    \"\"\"\r\n  File \"/odoo/src/odoo/sql_db.py\", line 154, in wrapper\r\n    return f(self, *args, **kwargs)\r\n  File \"/odoo/src/odoo/sql_db.py\", line 231, in execute\r\n    res = self._obj.execute(query, params)\r\nProgrammingError: column \"picking_type_id\" of relation \"mrp_production\" already exists\r\n\r\n--\r\nI confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr\r\n"},"comment":{"url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/comments/447876950","html_url":"https://github.com/OCA/OpenUpgrade/pull/1668#issuecomment-447876950","issue_url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/1668","id":447876950,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Nzg3Njk1MA==","user":{"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},"created_at":"2018-12-17T15:05:54Z","updated_at":"2018-12-17T15:05:54Z","author_association":"CONTRIBUTOR","body":"For reducing the diff, please do the reversed check and return in that case. Is this maybe due to a custom module?"}}
{"actor":{"display_login":"pedrobaeza"}}