diff options
| author | Géry Debongnie <ged@odoo.com> | 2015-03-13 14:02:50 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2015-03-18 09:23:37 +0100 |
| commit | 4fdf74fe21b9fb99ed9cdcb1a0ef2e21d34dafed (patch) | |
| tree | cfd1e48916e8ff130dd4bc6b60424e13fe1d4c9f /addons/web/static/src/js/views/form_relational_widgets.js | |
| parent | 59a4706dd97391772efa420a8c5c1f3b1334db7e (diff) | |
[IMP] web+addons: improvement to module system
The module system needs to know the dependencies of a given module
before executing the function. This is why the dependencies were
defined once in an array, and then were described one more times in the
call to require.
But a trick can simplify this: the boot function can parse the string
representation of the module and extract the calls to require from it.
It is more work for the processor, but it leads to simpler module
definitions.
Diffstat (limited to 'addons/web/static/src/js/views/form_relational_widgets.js')
| -rw-r--r-- | addons/web/static/src/js/views/form_relational_widgets.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/js/views/form_relational_widgets.js b/addons/web/static/src/js/views/form_relational_widgets.js index 19ca1903048..376a01f07f5 100644 --- a/addons/web/static/src/js/views/form_relational_widgets.js +++ b/addons/web/static/src/js/views/form_relational_widgets.js @@ -1,4 +1,4 @@ -odoo.define('web.form_relational', ['web.core', 'web.data', 'web.Dialog', 'web.form_common', 'web.FormView', 'web.ListView', 'web.Model', 'web.session', 'web.utils', 'web.ViewManager'], function (require) { +odoo.define('web.form_relational', function (require) { "use strict"; var core = require('web.core'); @@ -1935,7 +1935,7 @@ return { }); -odoo.define('web_kanban.Many2ManyKanbanView', ['web.core', 'web_kanban.KanbanView', 'web.Widget'], function (require) { +odoo.define('web_kanban.Many2ManyKanbanView', function (require) { "use strict"; // This code has a dependency on the addon web_kanban. This is a weird dependency issue. To fix it, // we should either move this code into web_kanban, or move web_kanban into the web client. |
