Odoo Server Error ubuntu
<p>When try install any module get this error.</p>

<pre><code>Odoo Server Error

Traceback (most recent call last):
  File "/home/nolimit/git/odoo/openerp/http.py", line 648, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/nolimit/git/odoo/openerp/http.py", line 685, in dispatch
    result = self._call_function(**self.params)
  File "/home/nolimit/git/odoo/openerp/http.py", line 321, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/nolimit/git/odoo/openerp/service/model.py", line 118, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/nolimit/git/odoo/openerp/http.py", line 314, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/nolimit/git/odoo/openerp/http.py", line 964, in __call__
    return self.method(*args, **kw)
  File "/home/nolimit/git/odoo/openerp/http.py", line 514, in response_wrap
    response = f(*args, **kw)
  File "/home/nolimit/git/odoo/addons/web/controllers/main.py", line 892, in call_button
    action = self._call_kw(model, method, args, {})
  File "/home/nolimit/git/odoo/addons/web/controllers/main.py", line 880, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/home/nolimit/git/odoo/openerp/api.py", line 250, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/nolimit/git/odoo/openerp/addons/base/module/module.py", line 459, in button_immediate_install
    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
  File "/home/nolimit/git/odoo/openerp/api.py", line 250, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/nolimit/git/odoo/openerp/addons/base/module/module.py", line 533, in _button_immediate_function
    registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
  File "/home/nolimit/git/odoo/openerp/modules/registry.py", line 386, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/nolimit/git/odoo/openerp/modules/loading.py", line 338, in load_modules
    loaded_modules, update_module)
  File "/home/nolimit/git/odoo/openerp/modules/loading.py", line 237, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/home/nolimit/git/odoo/openerp/modules/loading.py", line 156, in load_module_graph
    _load_data(cr, module_name, idref, mode, kind='data')
  File "/home/nolimit/git/odoo/openerp/modules/loading.py", line 98, in _load_data
    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
  File "/home/nolimit/git/odoo/openerp/tools/convert.py", line 851, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  File "/home/nolimit/git/odoo/openerp/tools/convert.py", line 917, in convert_xml_import
    doc = etree.parse(xmlfile)
  File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
  File "parser.pxi", line 1769, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102257)
  File "parser.pxi", line 1789, in lxml.etree._parseFilelikeDocument (src/lxml/lxml.etree.c:102516)
  File "parser.pxi", line 1684, in lxml.etree._parseDocFromFilelike (src/lxml/lxml.etree.c:101442)
  File "parser.pxi", line 1134, in lxml.etree._BaseParser._parseDocFromFilelike (src/lxml/lxml.etree.c:97069)
  File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
  File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
  File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
XMLSyntaxError: StartTag: invalid element name, line 8, column 4
</code></pre>

<p>Any solution how fix this problem?</p>

<p>Structure of module  </p>

<p>Folder:  daily_transaction</p>

<p><strong>init</strong>.py</p>

<pre><code>daily_transaction
</code></pre>

<p><strong>openerp</strong>.py</p>

<pre><code>{
        'name': 'Daily Transaction Manager',
        'version': '1.0',
        'author': 'Lionel Messi',
        'complexity': 'normal',
        'description': 'New module',
        'category': '',
        'depends': [],
        'data': ['daily_transaction_view.xml'],
        'auto_install': False,
        'installable': True,
        'external_dependencies': {
            'python': [],
        },
    }
</code></pre>

<p>daily_transaction.py</p>

<pre><code>from openerp.osv import fields, osv

class daily_transaction(osv.osv):
    _name = "daily.transaction"
    _description = "Daily Transaction"

    _colums = {
        'subject': fields.char('Subject', size=128, required=True),
        'date': fields.date('Date', required=True),
        'note': fields.text('Notes'),
        'amount': fields.float('Amount', required=True),
        'type': fields.selection([
                  ('transport', 'Transport'),
                  ('household','Household'),
                  ('personal', 'Personal'),
                  ],'Type', required=True),                   
               }
</code></pre>

<p>daily_transaction_view.xml</p>



<pre><code>&lt;openerp&gt;
    &lt;data&gt;
        &lt;!--Daily Transaction List View--&gt;          
        &lt;record id="view_daily_transaction_tree" model="ir.ui.view"&gt; 

        &lt;!â here id is the external id for this tree view which must be unique and will be used for accessing this record --&gt;           
        &lt;field name="name"&gt;daily.transaction.tree&lt;/field&gt; 

        &lt;!â this will be our name of record in ir.ui.view --&gt;           
        &lt;field name="model"&gt;daily.transaction&lt;/field&gt; 

        &lt;!â this will map out tree view with our daily transaction model --&gt;            
        &lt;field name="arch" type="xml"&gt;
           &lt;!-- this will be our title of list/tree view --&gt; 
           &lt;tree string="Daily Transaction"&gt; &lt;!-- these will automatically map table headers for our list view, so weâll select out column names of our model here --&gt; 
               &lt;field name="name"/&gt; 
               &lt;field name="date"/&gt; 
               &lt;field name="type"/&gt; 
               &lt;field name="amount"/&gt; 
           &lt;/tree&gt; 
           &lt;/field&gt;
        &lt;/record&gt;           

         &lt;!--Daily Transaction Form View--&gt; 

         &lt;record id="view_daily_transaction_form" model="ir.ui.view"&gt; 
         &lt;field name="name"&gt;daily.transaction.form.view&lt;/field&gt; 
         &lt;field name="model"&gt;daily.transaction&lt;/field&gt;
              &lt;field name="arch" type="xml"&gt; 
              &lt;!-- this will be our title of list/tree view --&gt; 
                  &lt;form string="Daily Transaction" version="7.0"&gt; 
                      &lt;group&gt; 
                          &lt;field name="name"/&gt; 
                          &lt;field name="date"/&gt; 
                          &lt;field name="type"/&gt;
                          &lt;field name="amount"/&gt;
                          &lt;field name="note"/&gt;
                      &lt;/group&gt; 
                  &lt;/form&gt; 
              &lt;/field&gt; 
          &lt;/record&gt;                       

        &lt;record id="action_daily_transaction" model="ir.actions.act_window"&gt;
            &lt;field name="name"&gt;Daily Transaction&lt;/field&gt; 
            &lt;!â name of action --&gt; 
            &lt;field name="res_model"&gt;daily.transaction&lt;/field&gt; 
            &lt;!â this action will be mapped to model specified --&gt; 
            &lt;field name="view_type"&gt;form&lt;/field&gt; 
            &lt;field name="view_mode"&gt;tree,form&lt;/field&gt; 
            &lt;!-- these are type of view our module will show for our daily transaction mode --&gt; 
            &lt;field name="search_view_id" eval="False"/&gt; 
            &lt;!â here we specify id of our search view --&gt; 
            &lt;field name="context"&gt;{}&lt;/field&gt; 
            &lt;field name="help"&gt;Create new daily transaction.&lt;/field&gt; 
            &lt;!â help text for our model --&gt; 
        &lt;/record&gt;

    &lt;/data&gt;
&lt;/openerp&gt;
</code></pre>

<p>What is that? <a href="https://postimg.cc/image/csxssd7tx/" rel="nofollow">https://postimg.cc/image/csxssd7tx/</a></p>

<p>Module --> <a href="https://postimg.cc/image/gk1uyb0vn/" rel="nofollow">https://postimg.cc/image/gk1uyb0vn/</a></p>

<p>It seems like you forget to declare <code>name</code> field on your Class.</p>

<p>You can resolve it with following two option:</p>

<ol>
<li>Add <em>name</em> field on your <em>class daily_transaction</em> OR</li>
<li><p>You may change field definition like</p>

<pre><code>'name': fields.char('Subject', size=128, required=True), 
</code></pre></li>
</ol>

<p>Afterwards, restart your reserver and upgrade module.</p>

python openerp odoo-8 odoo-9