mirror of
https://github.com/odoo/runbot.git
synced 2025-03-26 04:45:52 +07:00

`message_main_attachment_id` removed from `mail.thread` in odoo/odoo@f8c7f2e5bb (16.2), however precise inheritance tracking was only added in odoo/odoo@b27eb20a41 (17.1), so stock migration only handles stock models for this migration.
8 lines
397 B
Python
8 lines
397 B
Python
from odoo.upgrade import util
|
|
|
|
def migrate(cr, _version):
|
|
util.remove_field(cr, "res.partner", "message_main_attachment_id")
|
|
util.remove_field(cr, "runbot_merge.batch", "message_main_attachment_id")
|
|
util.remove_field(cr, "runbot_merge.pull_requests", "message_main_attachment_id")
|
|
util.remove_field(cr, "runbot_merge.pull_requests.feedback.template", "message_main_attachment_id")
|