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

Creating a module

By
Samea
on 5/30/14, 6:54 AM 29,281 views

I'm new to Odoo and trying to create my first module, preferably a "hello world" one when it comes at complexity. What I can't really figure out is how I should create a new module and what its file structure is. I have googled about the topic and found several different examples so I'm confused what is the proper way to do it in Odoo 8. I installed Odoo as instructed at Github page with the Python script.

For example according to this guide https://doc.openerp.com/trunk/server/howto/howto_website/ I should use "oe" to generate the module. For the life of me I can't find a program like that anywhere on my Odoo installation. Then this https://doc.openerp.com/trunk/server/03_module_dev_01/ explains the different parts of a module but doesn't really provide an example. This tutorial http://thierry-godin.developpez.com/openerp/tutorial-module-creation-pos-modification-english-version/ provides a folder structure for a module, but it seems to differ from other examples by having folders and files not mentioned in the other sources.

So in short is there an up to date example of a bare-bones module or guide for creating one? Is one of the linked ones viable? 

@Nehal Nice but in the first page there is not correct xml-file to look from. Also the second link is already familiar to me. I'll try to check if I can get some pointers from it.

Samea
on 5/30/14, 7:58 AM
3

Akhil P Sivan

--Akhil P Sivan--
3423
| 5 3 6
Kochi, India
--Akhil P Sivan--

Interested in exploring Odoo both technically & functionality wise.

email-id : akhilpsivan01@gmail.com

Akhil P Sivan
On 12/3/14, 12:20 PM

Hi Samea,

Please refer the following link to learn about creating a module in Odoo 8:

https://www.odoo.com/documentation/8.0/howtos/backend.html#build-an-odoo-module

1

Take a look at: https://www.odoo.com/forum/Help-1/question/How-i-can-create-module-openerp-7--16336 it has links to several examples.

For starters, do a simple test with:
__init__.py
(with import of your py file in it)

__openerp__.py
(with the description of your module and import of your xml files)

your_python.py
(with your model definition)

you_views.xml
(with the view definitions of your module).

Put these files inside a folder and upload them to the "addons" folder of your server.

In your OpenERP client, go to Settings »» Update Module List. After that, go to Settings »» Installed modules; remove the "installed" filter from the search box and search for the name of your module. Your module should now show up in the "kanban view" click the Install button and it should be running!

After this first step, add complexity to it at your taste! :-)

0
Mazhar Iqbal Rana
On 11/29/14, 11:24 PM

Hello Samea

Creating Module in Odoo8 is not that difficult.. Do not worry. examples do exist there on internet. One of the examples, step by step process of creating a complete module I am giving below.

 

http://www.mindissoftware.com/2014/08/31/odoo-addon-open-academy-step2/

 

Hopw it helps you

 

Notify me if not

 

Take Care

0

Nehal

--Nehal--
2090
| 5 2 8
Ahmadabad, India
--Nehal--
Nehal
On 5/30/14, 7:38 AM

Hi,

Refer the following links:
http://www.ibcscorp.com/openerp-custom-module-development-quick-start-guide/
https://doc.openerp.com/trunk/server/03_module_dev_05/
 

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

5 follower(s)

Stats

Asked: 5/30/14, 6:54 AM
Seen: 29281 times
Last updated: 4/13/16, 3:30 AM