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.

0

Relation in custom module to ir.modules (SOLVED)

By
Dr Obx
on 8/17/15, 11:58 AM 384 views

Hi guys,

I would like to add to my new module a relation which let me add list of installed modules

...

date = fields.Datetime(required=True, default=now)

mod2update = fields.Reference('ir.module.module', string='Module updated', required='False')  <- here (tried also many2one type with same result)

employee_id = fields.Many2one('hr.employee',

string='Reviewed by',

required=False)

...

I can get list of employees but when i'm trying make relation with ir.modules it giving me "Programming error"


ProgrammingError: column "mod2update" of relation "iupdate_log" does not exist

LINE 1: ...loyee_id", "name", "update_description", "state", "mod2updat...

^

SOLVED

Just added dependencies into __openerp__.py

['base']

Great, I faced the same problem and after many trials I got the same solution

Tarek Mohamed Ibrahim
on 8/17/15, 5:47 PM

Great :)

Dr Obx
on 8/17/15, 6:28 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

1 follower(s)

Stats

Asked: 8/17/15, 11:58 AM
Seen: 384 times
Last updated: 8/18/15, 3:18 AM