5
0
mirror of https://github.com/odoo/runbot.git synced 2025-03-26 04:45:52 +07:00
runbot/runbot_merge/migrations/17.0.1.15/pre-migration.py
Xavier Morel 36786d51c8 [ADD] runbot_merge: 17.0 migration
`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.
2024-08-13 08:00:21 +02:00

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")