How can I solve this ParseError related to Odoo 9?
<p>I'm new to odoo and I'm trying to build a module using the documentation of odoo 9.</p>

<p>I have already created the module and I have installed it, but when I want to add the xml file, an error occurs, especially when I add the line 'views/openacademy.xml' to the <strong>openerp</strong>.py :</p>

<pre><code>ParseError : "ModÃ¨le non valide dans la dÃ©finition de l'action"

None" while parsing file:///D:/Odoo/Odoo%209/server/openep/addons/openacademy/views/openacademy.xml:9, near

       &lt;record model="ir.actions.act_window" id="course_list_action"&gt;
            &lt;field name="name"&gt;Courses&lt;/field&gt;
            &lt;field name="res_model"&gt;openacademy.course&lt;/field&gt;
            &lt;field name="view_type"&gt;form&lt;/field&gt;
            &lt;field name="view_mode"&gt;tree,form&lt;/field&gt;
            &lt;field name="help" type="html"&gt;
                &lt;p class="oe_view_nocontent_create"&gt;Create the first course
                &lt;/p&gt;
            &lt;/field&gt;
        &lt;/record&gt;
</code></pre>

<p><strong>My code :</strong></p>

<p><strong>openacademy.py :</strong></p>

<pre><code>from openerp import models, fields, api

class Course(models.Model):
    _name = 'openacademy.course'

    name = fields.Char(string="Title", required=True)
    description = fields.Text()
</code></pre>

<p><strong>openacademy.xml :</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;openerp&gt;
    &lt;data&gt;
        &lt;!-- window action --&gt;
        &lt;!--
            The following tag is an action definition for a "window action",
            that is an action opening a view or a set of views
        --&gt;
        &lt;record model="ir.actions.act_window" id="course_list_action"&gt;
            &lt;field name="name"&gt;Courses&lt;/field&gt;
            &lt;field name="res_model"&gt;openacademy.course&lt;/field&gt;
            &lt;field name="view_type"&gt;form&lt;/field&gt;
            &lt;field name="view_mode"&gt;tree,form&lt;/field&gt;
            &lt;field name="help" type="html"&gt;
                &lt;p class="oe_view_nocontent_create"&gt;Create the first course
                &lt;/p&gt;
            &lt;/field&gt;
        &lt;/record&gt;

        &lt;!-- top level menu: no parent --&gt;
        &lt;menuitem id="main_openacademy_menu" name="Open Academy"/&gt;
        &lt;!-- A first level in the left side menu is needed
             before using action= attribute --&gt;
        &lt;menuitem id="openacademy_menu" name="Open Academy"
                  parent="main_openacademy_menu"/&gt;
        &lt;!-- the following menuitem should appear *after*
             its parent openacademy_menu and *after* its
             action course_list_action --&gt;
        &lt;menuitem id="courses_menu" name="Courses" parent="openacademy_menu"
                  action="course_list_action"/&gt;
        &lt;!-- Full id location:
             action="openacademy.course_list_action"
             It is not required when it is the same module --&gt;
    &lt;/data&gt;
&lt;/openerp&gt;
</code></pre>

<p><strong>__openerp__.py :</strong></p>

<pre><code># -*- coding: utf-8 -*-
{
    'name': "OpenAcademy",

    'summary': """
        My module is the first step to the manipulation of odoo""",

    'description': """
        Description is not necessary for the moment
    """,

    'author': "Osskadd",
    'website': "http://www.Thinkey.com",

    # Categories can be used to filter modules in modules listing
    # Check https://github.com/odoo/odoo/blob/master/openerp/addons/base/module/module_data.xml
    # for the full list
    'category': 'Ecommerce',
    'version': '0.1',

    # any module necessary for this one to work correctly
    'depends': ['base'],

    # always loaded
    'data': [
        # 'security/ir.model.access.csv',
        'views/openacademy.xml',
        'views/templates.xml',


    ],
    # only loaded in demonstration mode
    'demo': [
        'demo/demo.xml',
    ],
}
</code></pre>

<p>Thanks for the help!</p>

<p>I think it is complaining about how you reference tree,form views. However you have not defined any. Define a tree and form view above the code you have.</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;openerp&gt;
&lt;data&gt;

    &lt;record model="ir.ui.view" id="course_tree_view"&gt;
        &lt;field name="name"&gt;course.tree&lt;/field&gt;
        &lt;field name="model"&gt;openacademy.course&lt;/field&gt;
        &lt;field name="arch" type="xml"&gt;
            &lt;tree string="Courses Tree"&gt;
                &lt;!-- YOUR TREE VIEW HERE --&gt;
            &lt;/tree&gt;
        &lt;/field&gt;
    &lt;/record&gt;

    &lt;record model="ir.ui.view" id="course_form_view"&gt;
        &lt;field name="name"&gt;course.form&lt;/field&gt;
        &lt;field name="model"&gt;openacademy.course&lt;/field&gt;
        &lt;field name="arch" type="xml"&gt;
            &lt;form string="Course Form"&gt;
                &lt;sheet&gt;
                &lt;!-- YOUR FORM VIEW HERE --&gt;
                &lt;/sheet&gt;
            &lt;/form&gt;
        &lt;/field&gt;
    &lt;/record&gt;  


    &lt;!-- window action --&gt;
    &lt;!--
        The following tag is an action definition for a "window action",
        that is an action opening a view or a set of views
    --&gt;
    &lt;record model="ir.actions.act_window" id="course_list_action"&gt;
        &lt;field name="name"&gt;Courses&lt;/field&gt;
        &lt;field name="res_model"&gt;openacademy.course&lt;/field&gt;
        &lt;field name="view_type"&gt;form&lt;/field&gt;
        &lt;field name="view_mode"&gt;tree,form&lt;/field&gt;
        &lt;field name="help" type="html"&gt;
            &lt;p class="oe_view_nocontent_create"&gt;Create the first course
            &lt;/p&gt;
        &lt;/field&gt;
    &lt;/record&gt;

    &lt;!-- top level menu: no parent --&gt;
    &lt;menuitem id="main_openacademy_menu" name="Open Academy"/&gt;
    &lt;!-- A first level in the left side menu is needed
         before using action= attribute --&gt;
    &lt;menuitem id="openacademy_menu" name="Open Academy"
              parent="main_openacademy_menu"/&gt;
    &lt;!-- the following menuitem should appear *after*
         its parent openacademy_menu and *after* its
         action course_list_action --&gt;
    &lt;menuitem id="courses_menu" name="Courses" parent="openacademy_menu"
              action="course_list_action"/&gt;
    &lt;!-- Full id location:
         action="openacademy.course_list_action"
         It is not required when it is the same module --&gt;
&lt;/data&gt;
</code></pre>

<p></p>

python xml odoo-9 parse-error