summaryrefslogtreecommitdiff
path: root/addons/account/static/src/js
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2015-03-13 14:02:50 +0100
committerGéry Debongnie <ged@odoo.com>2015-03-18 09:23:37 +0100
commit4fdf74fe21b9fb99ed9cdcb1a0ef2e21d34dafed (patch)
treecfd1e48916e8ff130dd4bc6b60424e13fe1d4c9f /addons/account/static/src/js
parent59a4706dd97391772efa420a8c5c1f3b1334db7e (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/account/static/src/js')
-rw-r--r--addons/account/static/src/js/move_line_quickadd.js2
-rw-r--r--addons/account/static/src/js/tour_bank_statement_reconciliation.js2
-rw-r--r--addons/account/static/src/js/widgets.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/addons/account/static/src/js/move_line_quickadd.js b/addons/account/static/src/js/move_line_quickadd.js
index 80b70fe03e0..6d437826a6a 100644
--- a/addons/account/static/src/js/move_line_quickadd.js
+++ b/addons/account/static/src/js/move_line_quickadd.js
@@ -1,4 +1,4 @@
-odoo.define('account.move_line_quickadd', ['web.core', 'web.data', 'web.ListView', 'web.Model'], function (require) {
+odoo.define('account.move_line_quickadd', function (require) {
"use strict";
var core = require('web.core');
diff --git a/addons/account/static/src/js/tour_bank_statement_reconciliation.js b/addons/account/static/src/js/tour_bank_statement_reconciliation.js
index 8c6cf843f5b..9c9fc2abe67 100644
--- a/addons/account/static/src/js/tour_bank_statement_reconciliation.js
+++ b/addons/account/static/src/js/tour_bank_statement_reconciliation.js
@@ -1,4 +1,4 @@
-odoo.define('account.tour_bank_statement_reconciliation', ['web.core', 'web.Tour'], function(require) {
+odoo.define('account.tour_bank_statement_reconciliation', function(require) {
'use strict';
var core = require('web.core');
diff --git a/addons/account/static/src/js/widgets.js b/addons/account/static/src/js/widgets.js
index e93598b78b6..054735cb60d 100644
--- a/addons/account/static/src/js/widgets.js
+++ b/addons/account/static/src/js/widgets.js
@@ -1,4 +1,4 @@
-odoo.define('account.widgets', ['web.ActionManager', 'web.core', 'web.CrashManager', 'web.data', 'web.Dialog', 'web.formats', 'web.FormView', 'web.ListView', 'web.Model', 'web.pyeval', 'web.web_client', 'web.Widget'], function (require) {
+odoo.define('account.widgets', function (require) {
"use strict";
var ActionManager = require('web.ActionManager');