How to create and install a  module in odoo 10? – CBMS Odoo ERP

How to create and install a module in odoo 10? – CBMS Odoo ERP

In this video clearly explains how to build a new module and install in Odoo version10.
For those who are in starting stage of Odoo development, it is a tough task for creating a new module. In this section let us look how to create a new module in the Odoo.
There are mainly four files required for creating a new module (.py or .xml can be excluded as per the need). Refer:

For more information visit our website

#create #install #module #odoo

Similar Posts

11 Comments

  1. avatar
    @ferranbocklent2577 says:

    Erreur:
    Odoo Server Error

    Traceback (most recent call last):
    File "e:Program Files (x86)Odoo 11.0serverodoohttp.py", line 647, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
    File "e:Program Files (x86)Odoo 11.0serverodoohttp.py", line 307, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
    File "e:Program Files (x86)Odoo 11.0serverodootoolspycompat.py", line 87, in reraise
    raise value
    File "e:Program Files (x86)Odoo 11.0serverodoohttp.py", line 689, in dispatch
    result = self._call_function(**self.params)
    File "e:Program Files (x86)Odoo 11.0serverodoohttp.py", line 339, in _call_function
    return checked_call(self.db, *args, **kwargs)
    File "e:Program Files (x86)Odoo 11.0serverodooservicemodel.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
    File "e:Program Files (x86)Odoo 11.0serverodoohttp.py", line 332, in checked_call
    result = self.endpoint(*a, **kw)
    File "e:Program Files (x86)Odoo 11.0serverodoohttp.py", line 933, in _call_
    return self.method(*args, **kw)
    File "e:Program Files (x86)Odoo 11.0serverodoohttp.py", line 512, in response_wrap
    response = f(*args, **kw)
    File "e:Program Files (x86)Odoo 11.0serverodooaddonswebcontrollersmain.py", line 934, in call_button
    action = self._call_kw(model, method, args, {})
    File "e:Program Files (x86)Odoo 11.0serverodooaddonswebcontrollersmain.py", line 922, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
    File "e:Program Files (x86)Odoo 11.0serverodooapi.py", line 689, in call_kw
    return call_kw_multi(method, model, args, kwargs)
    File "e:Program Files (x86)Odoo 11.0serverodooapi.py", line 680, in call_kw_multi
    result = method(recs, *args, **kwargs)
    File "<decorator-gen-129>", line 2, in button_immediate_install
    File "e:Program Files (x86)Odoo 11.0serverodooaddonsbasemodulemodule.py", line 71, in check_and_log
    return method(self, *args, **kwargs)
    File "e:Program Files (x86)Odoo 11.0serverodooaddonsbasemodulemodule.py", line 448, in button_immediate_install
    return self._button_immediate_function(type(self).button_install)
    File "e:Program Files (x86)Odoo 11.0serverodooaddonsbasemodulemodule.py", line 541, in _button_immediate_function
    modules.registry.Registry.new(self._cr.dbname, update_module=True)
    File "e:Program Files (x86)Odoo 11.0serverodoomodulesregistry.py", line 85, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
    File "e:Program Files (x86)Odoo 11.0serverodoomodulesloading.py", line 343, in load_modules
    loaded_modules, update_module)
    File "e:Program Files (x86)Odoo 11.0serverodoomodulesloading.py", line 242, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
    File "e:Program Files (x86)Odoo 11.0serverodoomodulesloading.py", line 121, in load_module_graph
    load_openerp_module(package.name)
    File "e:Program Files (x86)Odoo 11.0serverodoomodulesmodule.py", line 368, in load_openerp_module
    __import__('odoo.addons.' + module_name)
    File "e:Program Files (x86)Odoo 11.0serverodoomodulesmodule.py", line 82, in load_module
    exec(open(modfile, 'rb').read(), new_mod.__dict__)
    File "<string>", line 1, in <module>
    ModuleNotFoundError: No module named 'model'

  2. avatar
    @im_amitkr says:

    Hi first of all thanks for the tutorial . It is good but I am getting the following error

    ProgrammingError: column "first_name" of relation "student_student" does not exist
    LINE 1: INSERT INTO "student_student" ("id", "first_name", "last_nam…

    as you can see i a made some changes in field but it shouls work as gui part is working fine but its not creating columns in the table.

    select * from student_student;
    id | create_uid | write_uid | write_date | create_date
    —-+————+———–+————+————-
    table is there but not creating the proper columns.

    I am using psql (9.5.13) and odoo9 what should i do?

Leave a Reply

Your email address will not be published. Required fields are marked *