Skip to content

Commit

Permalink
Solve know issue in replacement <openerp><data>
Browse files Browse the repository at this point in the history
  • Loading branch information
flachica committed Aug 9, 2020
1 parent 436c9b2 commit dcdce83
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions odoo_module_migrate/migration_scripts/migrate_080_allways.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
_TEXT_REPLACES = {
".py": {"from openerp": "from odoo", "import openerp": "import odoo"},
".xml": {
r"( |\t)*<openerp>(\n| |\t)*<data>": "<odoo><data>",
r"( |\t)*<\/data>(\n| |\t)*<\/openerp>": "</data></odoo>",
r"( |\t)*<openerp>(\n| |\t)*<data>": "<odoo>\n <data>",
r"( |\t)*<\/data>(\n| |\t)*<\/openerp>": " </data>\n</odoo>",
}
}
6 changes: 4 additions & 2 deletions tests/data_result/module_080_130/demo/demo_ir_values.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<odoo><data>
<odoo>
<data>
<record name="demo_values" model="ir.values">
<field name="name">My Demo Values</field>
</record>
</data></odoo>
</data>
</odoo>
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<odoo><data>
<odoo>
<data>
<record name="demo_category" model="product.category">
<field name="name">My Demo Category</field>
</record>
</data></odoo>
</data>
</odoo>
6 changes: 4 additions & 2 deletions tests/data_result/module_080_130/views/sale_order.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo><data>
<odoo>
<data>
<record id="action_order_custom_field_a" model="ir.actions.act_window">
<field name="name">Custom field A</field>
<field name="res_model">sale.report</field>
Expand Down Expand Up @@ -27,4 +28,5 @@
<field name="view_mode">tree,form</field>
<field name="domain">[('custom_field','=','d')]</field>
</record>
</data></odoo>
</data>
</odoo>

0 comments on commit dcdce83

Please sign in to comment.