Odoo Help


What to import at creating a module for Odoo V8?

Marie Pinto
on 9/18/15, 12:32 PM 906 views

I read I should begin with:

from odoo import Model, fields 
class mantenimientos(Model):
_name = 'project.mantenimientos'

But it gives me the following error in the log file:

ImportError: No module named odoo

I'm in Windows, and installed  Odoo 8.0-20150312. Hope someone can help me.

Axel Mendoza
On 9/18/15, 3:20 PM

As docs said at: https://www.odoo.com/documentation/8.0/reference/orm.html

from openerp import models, fields
class AModel(models.Model):
_name = 'a.model.name'
field1 = fields.Char()


Happy to help

Axel Mendoza
on 11/29/15, 3:00 AM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 9/18/15, 12:32 PM
Seen: 906 times
Last updated: 9/18/15, 4:17 PM