[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.
This commit is contained in:
Géry Debongnie
2015-03-18 09:23:37 +01:00
parent 59a4706dd9
commit 4fdf74fe21
194 changed files with 494 additions and 513 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
odoo.define('web.data', ['web.core', 'web.Model', 'web.session', 'web.pyeval'], function (require) {
odoo.define('web.data', function (require) {
"use strict";
var core = require('web.core');