Community mailing list archives

community@mail.odoo.com

RE: error : AttributeError: 'NoneType' object has no attribute '_name'

by
Miguel Angel
- 03/30/2015 10:17:12
Hello,

It seems that your "_table" class has not defined the "name" field or simply not established as a top priority in installing the __init__.py file depending where it defined its "_table" class.

regards

Miguel Angel Callisaya Mamani
E-mail: miguel_ancangel@hotmail.com
La Paz - Bolivia




Subject: error : AttributeError: 'NoneType' object has no attribute '_name'
From: ujwalahpawade@gmail.com
Date: Mon, 30 Mar 2015 10:32:12 +0000
To: community@mail.odoo.com

Hello All,

I am developing customized modules for my organization.

While upgrading my this customized module, I got a following error:

File "/opt/openerp/server/openerp/osv/orm.py", line 468, in __getitem__
    new_data[field_name] = browse_record(self._cr, self._uid, ref_id, obj, self._cache, context=self._context, list_class=self._list_class, fields_process=self._fields_process)
  File "/opt/openerp/server/openerp/osv/orm.py", line 338, in __init__
    self._table_name = self._table._name
AttributeError: 'NoneType' object has no attribute '_name'

Please provide a solution if possible


--
Ujwala,
Freedom Matters Not The Cost !!

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe