[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.
This commit is contained in:
Xavier Morel 2024-08-13 08:00:21 +02:00
parent aa1df22657
commit 36786d51c8

View File

@ -0,0 +1,7 @@
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")