Odoo Help


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.


Column model.field doesn't exist?

Carlos Llamacho
on 9/11/13, 12:41 PM 1,562 views

Hello, i am trying to do a simple class extension to the model ir.ui.menu, but i find it baffling that it shows a error saying that the field doesn't exist as i am currently creating it.

This is my code

class Menu(osv.osv):
        _name = 'ir.ui.menu'
        _inherit = 'ir.ui.menu'
        _columns = {
            'test_field':fields.many2one('related.model', 'Tests', ondelete='cascade')

But this raises the following error.

File "/home/erp_user/openerp/test/server/openerp/sql_db.py", line 226, in execute res = self._obj.execute(query, params) ProgrammingError: column ir_ui_menu.test does not exist LINE 1: ...",ir_ui_menu."parent_id",ir_ui_menu."parent_left",ir_ui_menu...

I have no clue of how to declare the field in other way as this one has always functioned. Any ideas? Thanks in advance.

Please post your xml view.

GH Mediacloud, Grover Menacho
on 9/11/13, 1:04 PM

That is the thing, i stil haven't done it. I erased my view trying to solve this, only declaring the field still with no result. I have a <page string="Menus & Actions"></page> with no content, and still it appears.

Carlos Llamacho
on 9/11/13, 1:34 PM

avoid the _name and verify the result

Abhishek H Menon
on 9/13/13, 4:17 AM

No, that was no good at all. I actually resolved it, but was going into the database, unsinstalling the module and then reinstalling it again. Very unpractical and still don't know what caused the error.

Carlos Llamacho
on 9/16/13, 6:35 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

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

Question tools

0 follower(s)


Asked: 9/11/13, 12:41 PM
Seen: 1562 times
Last updated: 3/16/15, 8:10 AM