Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: what is the name of an app

by
Bogdan Lisnenko
- 08/12/2015 09:53:04
Module name is a name of application
Model name is a name of python class inside Odoo api

2015-08-12 15:48 GMT+03:00 Yannick Vaucher <yannick.vaucher@camptocamp.com>:
Hello Robert,


You can set in your __openerp__.py `'application': True` thus, this
module will show up when filtering with apps in module list in Odoo.
An application is module bringing a complete feature, a module itself
can be a part of an app. All application tag might not be well defined
on all
modules, it depends on what the author think a complete application is
or if he didn't bothered setting that option.

The name in __openerp__.py is the name displayed in your module list
and on apps.odoo.com if you register you module on it.
You can also add 'summary' to show a short description in lists.

The name in the model defines the database table name for that model.
You will use it only in your developments.
A module can contain multiple models. There is no relation between the
module name and the model name.

Most of the time you will see thought that model name in named after
the technical name of the module (folder name) like model stock.move
in stock module.
But it's not mandatory.

Cheers,

Yannick Vaucher
Business Solutions Software Developer

Camptocamp SA
PSE A, CH-1015 Lausanne
Phone: +41 21 619 10 30
Office: +41 21 619 10 10
http://www.camptocamp.com/
On Wed, Aug 12, 2015 at 2:35 PM, robert <robert@redcor.ch> wrote: > Hi there, > > I am in the process of learning to developp for odoo. > Todo so I am working trough daniels reis' book "odoo developpement > essentials" > > Now I wonder what defines the name of an app: > > in __openerp__.py we migth define: > {'name': 'To-Do Application', > .. > } > > then I define a model like this: > > class TodoTask(models.Model): > _name = 'todo.task' > .. > > now my questions: > what is a module, what is an app ?? > > When is the name found in __openerp__.py used and when the one in the model? > > thanks for your time > robert > > _______________________________________________ > Mailing-List: https://www.odoo.com/groups/community-framework-62 > Post to: mailto:expert-framework@mail.odoo.com > Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-framework-62
Post to: mailto:expert-framework@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe