← Back to team overview

openerp-dev-web team mailing list archive

Re: rename openerp into db

 

We can only have one db per 'openerp instance' because installed addons are applied on that 'openerp instance' so i want to rename it db. It's short and correct.

db.web.FormView means the FormView class for this specific db because it can be extended by any other module installed by doing:

db.web.FormView = db.web.FormView.extend(...overrides...})

On 09/13/2011 01:10 AM, Antony Lesuisse wrote:
A very simple module would look like this:

openerp.addons.my_little_module = function(app) {
app.my_little_module.MyLittleWidget = app.web.Widget.extend({
...code...
});
app.web.FormView = app.web.FormView.extend({
...override...
})
}

What are the other possibilities for 'app' ?


Follow ups

References