OCA reporting engine fork for dev and update.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
509 B

  1. # Copyright 2020 Tecnativa - Pedro M. Baeza
  2. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
  3. from openupgradelib import openupgrade
  4. @openupgrade.migrate()
  5. def migrate(env, version):
  6. table = 'res_partner'
  7. old_column = 'property_comment_template_id'
  8. new_column = openupgrade.get_legacy_name(old_column)
  9. if openupgrade.column_exists(cr, table, new_column):
  10. openupgrade.convert_to_company_dependent(
  11. env, 'res.partner', old_column, new_column, 'res.partner')