Skip to content

Commit

Permalink
[ADD] @string in xpath is deprecated error
Browse files Browse the repository at this point in the history
  • Loading branch information
unaiberis authored and legalsylvain committed Oct 17, 2024
1 parent ca81e06 commit 38e7a02
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions odoo_module_migrate/migration_scripts/migrate_080_allways.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

_FILE_RENAMES = {"__openerp__.py": "__manifest__.py"}

_TEXT_ERRORS = {
".xml": {
r'<xpath\s+expr="[^"]*\[@string=': "Error: The '@string=' xpath expression is deprecated.",
}
}
_TEXT_REPLACES = {
".py": {"from openerp": "from odoo", "import openerp": "import odoo"},
".xml": {
Expand All @@ -19,3 +24,4 @@ class MigrationScript(BaseMigrationScript):

_FILE_RENAMES = _FILE_RENAMES
_TEXT_REPLACES = _TEXT_REPLACES
_TEXT_ERRORS = _TEXT_ERRORS

0 comments on commit 38e7a02

Please sign in to comment.