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' ?
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-web
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-web
More help : https://help.launchpad.net/ListHelp