diff --git a/base_view_inheritance_extension/README.rst b/base_view_inheritance_extension/README.rst
index af1675b65..d97a5b97d 100644
--- a/base_view_inheritance_extension/README.rst
+++ b/base_view_inheritance_extension/README.rst
@@ -14,7 +14,7 @@ Usage
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
- :target: https://runbot.odoo-community.org/runbot/149/9.0
+ :target: https://runbot.odoo-community.org/runbot/149/10.0
Change a python dictionary (context for example)
------------------------------------------------
diff --git a/base_view_inheritance_extension/__openerp__.py b/base_view_inheritance_extension/__manifest__.py
similarity index 93%
rename from base_view_inheritance_extension/__openerp__.py
rename to base_view_inheritance_extension/__manifest__.py
index a9e251017..9088c8430 100644
--- a/base_view_inheritance_extension/__openerp__.py
+++ b/base_view_inheritance_extension/__manifest__.py
@@ -3,7 +3,7 @@
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
{
"name": "Extended view inheritance",
- "version": "9.0.1.1.0",
+ "version": "10.0.1.0.0",
"author": "Therp BV,Odoo Community Association (OCA)",
"license": "LGPL-3",
"category": "Hidden/Dependency",
diff --git a/base_view_inheritance_extension/demo/ir_ui_view.xml b/base_view_inheritance_extension/demo/ir_ui_view.xml
index 648a19cb5..96c6c7352 100644
--- a/base_view_inheritance_extension/demo/ir_ui_view.xml
+++ b/base_view_inheritance_extension/demo/ir_ui_view.xml
@@ -1,9 +1,8 @@
-
-
-
+
+
res.partner
-
+
Partner form
@@ -12,11 +11,13 @@
'The company name'
context.get('company_id', context.get('company'))
-
-
-
-
+
+
+
-
-
+
diff --git a/base_view_inheritance_extension/models/ir_ui_view.py b/base_view_inheritance_extension/models/ir_ui_view.py
index a32baee9d..3c844ec77 100644
--- a/base_view_inheritance_extension/models/ir_ui_view.py
+++ b/base_view_inheritance_extension/models/ir_ui_view.py
@@ -2,7 +2,7 @@
# © 2016 Therp BV
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from lxml import etree
-from openerp import api, models, tools
+from odoo import api, models, tools
class UnquoteObject(str):
diff --git a/base_view_inheritance_extension/tests/test_base_view_inheritance_extension.py b/base_view_inheritance_extension/tests/test_base_view_inheritance_extension.py
index af1e2c6ba..caeb8a359 100644
--- a/base_view_inheritance_extension/tests/test_base_view_inheritance_extension.py
+++ b/base_view_inheritance_extension/tests/test_base_view_inheritance_extension.py
@@ -2,13 +2,13 @@
# © 2016 Therp BV
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from lxml import etree
-from openerp.tests.common import TransactionCase
+from odoo.tests.common import TransactionCase
class TestBaseViewInheritanceExtension(TransactionCase):
def test_base_view_inheritance_extension(self):
- view_id = self.env.ref('base.view_partner_form').id
+ view_id = self.env.ref('base.view_partner_simple_form').id
fields_view_get = self.env['res.partner'].fields_view_get(
view_id=view_id
)
@@ -26,8 +26,8 @@ class TestBaseViewInheritanceExtension(TransactionCase):
)
# verify we moved the child_ids field
self.assertEqual(
- view.xpath('//field[@name="child_ids"]')[0].getparent(),
- view.xpath('//page[@name="my_new_page"]')[0]
+ view.xpath('//field[@name="mobile"]')[0].getparent(),
+ view.xpath('//page[@name="phone_book"]')[0]
)
def test_list_add(self):