Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

Why this error occurs? AttributeError: 'NoneType' object has no attribute '_orm_template__view_look_dom_arch' [Closed]

By
G K
on 2/16/13, 4:54 AM 3,738 views

The Question has been closed

by
Sudhir Arya (SA)
on 08/05/2013 11:45:42

Log file:

Traceback (most recent call last):
  File "/opt/hnferp/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/hnferp/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/hnferp/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/hnferp/server/bin/osv/orm.py", line 1645, in fields_view_get
    xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=ctx)
  File "/opt/hnferp/server/bin/osv/orm.py", line 1314, in __view_look_dom_arch
    fields_def = self.__view_look_dom(cr, user, node, view_id, context=context)
  File "/opt/hnferp/server/bin/osv/orm.py", line 1285, in __view_look_dom
    fields.update(self.__view_look_dom(cr, user, f, view_id, context))
  File "/opt/hnferp/server/bin/osv/orm.py", line 1285, in __view_look_dom
    fields.update(self.__view_look_dom(cr, user, f, view_id, context))
  File "/opt/hnferp/server/bin/osv/orm.py", line 1285, in __view_look_dom
    fields.update(self.__view_look_dom(cr, user, f, view_id, context))
  File "/opt/hnferp/server/bin/osv/orm.py", line 1223, in __view_look_dom
    xarch, xfields = relation.__view_look_dom_arch(cr, user, f, view_id, ctx)
AttributeError: 'NoneType' object has no attribute '_orm_template__view_look_dom_arch'
4

Sudhir Arya (SA)

--Sudhir Arya (SA)--
10150
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow

LinkedIn

Blog

Stackoverflow

Sudhir Arya (SA)
On 2/16/13, 6:03 AM

This type of error occurred when object defined in .py is not created due to some reason.

  1. Check that have you imported your .py in __init__.py.

  2. Check that class is properly closed or no, if you are using v6.0 or v6.1.

  3. Check that _name and inherited osv.osv is correctly defined or not.

Hope this will solve your problem.

The problem was with the value of _name, I have used underscore(_) instead of dot (.).

G K
on 11/15/13, 8:24 AM

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 2/16/13, 4:54 AM
Seen: 3738 times
Last updated: 3/16/15, 8:10 AM