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.

22 lines
667B

  1. # Copyright (C) 2019 - Today: GRAP (http://www.grap.coop)
  2. # @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. from odoo_module_migrate.base_migration_script import BaseMigrationScript
  5. _FILE_RENAMES = {"__openerp__.py": "__manifest__.py"}
  6. _TEXT_REPLACES = {
  7. ".py": {"from openerp": "from odoo", "import openerp": "import odoo"},
  8. ".xml": {
  9. r"( |\t)*<openerp>(\n| |\t)*<data>": "<odoo>",
  10. r"( |\t)*<\/data>(\n| |\t)*<\/openerp>": "</odoo>",
  11. }
  12. }
  13. class MigrationScript(BaseMigrationScript):
  14. _FILE_RENAMES = _FILE_RENAMES
  15. _TEXT_REPLACES = _TEXT_REPLACES
上海开阖软件有限公司 沪ICP备12045867号-1