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.

17 lines
375 B

  1. # Copyright 2020 Ozono Multimedia S.L.L.
  2. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  3. from openupgradelib import openupgrade
  4. field_renames = [
  5. (
  6. "account.move",
  7. "account_move",
  8. "move_type",
  9. "financial_type",
  10. ),
  11. ]
  12. @openupgrade.migrate()
  13. def migrate(env, version):
  14. openupgrade.rename_fields(env, field_renames)