diff options
| author | Jiten (OpenERP) <jra@tinyerp.com> | 2011-10-12 14:39:58 +0530 |
|---|---|---|
| committer | Jiten (OpenERP) <jra@tinyerp.com> | 2011-10-12 14:39:58 +0530 |
| commit | d7933e221113110f6e2cf97041f711c7a3cede1d (patch) | |
| tree | b45e46d834307bab66ad4ad0381407556793afea /addons/web_default_home/static/src | |
| parent | 77ad674798fbb82c364a82341763614aaede686d (diff) | |
| parent | 048cfa7804759c6b3fb952983451165fb319bc80 (diff) | |
[Merge] merge from openerp-web.
bzr revid: jra@tinyerp.com-20111012090958-3c5xp3e8viplb84f
Diffstat (limited to 'addons/web_default_home/static/src')
15 files changed, 0 insertions, 203 deletions
diff --git a/addons/web_default_home/static/src/css/home.css b/addons/web_default_home/static/src/css/home.css deleted file mode 100644 index bbf47f29cc4..00000000000 --- a/addons/web_default_home/static/src/css/home.css +++ /dev/null @@ -1,42 +0,0 @@ -.oe-static-home { - padding: 0.5em 0.5em; - text-align: center; -} -.oe-static-home h1 { - margin: 0 0 0.3em -} -.oe-static-home-banner { - display: inline-block; - margin: auto 0; - padding: 0.5em 5em; - text-align: left; -} -.oe-static-home-banner li { - font-size: 150%; - font-weight: bold; -} -.oe-static-home address { - font-style: normal; - padding-left: 2em; -} - -.oe-static-home-tiles { - text-align: left; -} -.oe-static-home-tiles td { - vertical-align: top; -} -.oe-static-home-tile { - margin: 0.5em; - padding: 0 1em; -} -.oe-static-home-tile-logo { - margin-right: 0.5em; -} -.oe-static-home-tile-text h2 { - margin-top: 0; - margin-bottom: 0.2em; -} -.oe-static-home-tile-text p { - margin: 0.5em 0; -} diff --git a/addons/web_default_home/static/src/img/account_voucher.png b/addons/web_default_home/static/src/img/account_voucher.png Binary files differdeleted file mode 100644 index afad1331e2e..00000000000 --- a/addons/web_default_home/static/src/img/account_voucher.png +++ /dev/null diff --git a/addons/web_default_home/static/src/img/crm.png b/addons/web_default_home/static/src/img/crm.png Binary files differdeleted file mode 100644 index 893bb23ab98..00000000000 --- a/addons/web_default_home/static/src/img/crm.png +++ /dev/null diff --git a/addons/web_default_home/static/src/img/hr.png b/addons/web_default_home/static/src/img/hr.png Binary files differdeleted file mode 100644 index 742f3e53e67..00000000000 --- a/addons/web_default_home/static/src/img/hr.png +++ /dev/null diff --git a/addons/web_default_home/static/src/img/knowledge.png b/addons/web_default_home/static/src/img/knowledge.png Binary files differdeleted file mode 100644 index 78864367df1..00000000000 --- a/addons/web_default_home/static/src/img/knowledge.png +++ /dev/null diff --git a/addons/web_default_home/static/src/img/marketing.png b/addons/web_default_home/static/src/img/marketing.png Binary files differdeleted file mode 100644 index cfe890f31be..00000000000 --- a/addons/web_default_home/static/src/img/marketing.png +++ /dev/null diff --git a/addons/web_default_home/static/src/img/mrp.png b/addons/web_default_home/static/src/img/mrp.png Binary files differdeleted file mode 100644 index 600104af507..00000000000 --- a/addons/web_default_home/static/src/img/mrp.png +++ /dev/null diff --git a/addons/web_default_home/static/src/img/point_of_sale.png b/addons/web_default_home/static/src/img/point_of_sale.png Binary files differdeleted file mode 100644 index 9054576f2d5..00000000000 --- a/addons/web_default_home/static/src/img/point_of_sale.png +++ /dev/null diff --git a/addons/web_default_home/static/src/img/profile_tools.png b/addons/web_default_home/static/src/img/profile_tools.png Binary files differdeleted file mode 100644 index d6ba0866777..00000000000 --- a/addons/web_default_home/static/src/img/profile_tools.png +++ /dev/null diff --git a/addons/web_default_home/static/src/img/project.png b/addons/web_default_home/static/src/img/project.png Binary files differdeleted file mode 100644 index 20ba49f07c8..00000000000 --- a/addons/web_default_home/static/src/img/project.png +++ /dev/null diff --git a/addons/web_default_home/static/src/img/purchase.png b/addons/web_default_home/static/src/img/purchase.png Binary files differdeleted file mode 100644 index 094705cecc3..00000000000 --- a/addons/web_default_home/static/src/img/purchase.png +++ /dev/null diff --git a/addons/web_default_home/static/src/img/sale.png b/addons/web_default_home/static/src/img/sale.png Binary files differdeleted file mode 100644 index 072570bae38..00000000000 --- a/addons/web_default_home/static/src/img/sale.png +++ /dev/null diff --git a/addons/web_default_home/static/src/img/stock.png b/addons/web_default_home/static/src/img/stock.png Binary files differdeleted file mode 100644 index a70ccfe18d5..00000000000 --- a/addons/web_default_home/static/src/img/stock.png +++ /dev/null diff --git a/addons/web_default_home/static/src/js/home.js b/addons/web_default_home/static/src/js/home.js deleted file mode 100644 index eff0567fd27..00000000000 --- a/addons/web_default_home/static/src/js/home.js +++ /dev/null @@ -1,127 +0,0 @@ -openerp.web_default_home = function (openerp) { - var QWeb = openerp.web.qweb; - QWeb.add_template('/web_default_home/static/src/xml/web_default_home.xml'); - - openerp.web_default_home = { - applications: [ - [ - { - module: 'crm', name: 'CRM', - help: "Acquire leads, follow opportunities, manage prospects and phone calls, \u2026" - }, { - module: 'sale', name: 'Sales', - help: "Do quotations, follow sales orders, invoice and control deliveries" - }, { - module: 'account_voucher', name: 'Invoicing', - help: "Send invoice, track payments and reminders" - }, { - module: 'project', name: 'Projects', - help: "Manage projects, track tasks, invoice task works, follow issues, \u2026" - } - ], [ - { - module: 'purchase', name: 'Purchase', - help: "Do purchase orders, control invoices and reception, follow your suppliers, \u2026" - }, { - module: 'stock', name: 'Warehouse', - help: "Track your stocks, schedule product moves, manage incoming and outgoing shipments, \u2026" - }, { - module: 'hr', name: 'Human Resources', - help: "Manage employees and their contracts, follow laves, recruit people, \u2026" - }, { - module: 'point_of_sale', name: 'Point of Sales', - help: "Manage shop sales, use touch-screen POS" - } - ], [ - { - module: 'profile_tools', name: 'Extra Tools', - help: "Track ideas, manage lunch, create surveys, share data" - }, { - module: 'mrp', name: 'Manufacturing', - help: "Manage your manufacturing, control your supply chain, personalize master data, \u2026" - }, { - module: 'marketing', name: 'Marketing', - help: "Manage campaigns, follow activities, automate emails, \u2026" - }, { - module: 'knowledge', name: 'Knowledge', - help: "Track your documents, browse your files, \u2026" - } - ] - ] - }; - - openerp.web.WebClient.include({ - default_home: function () { - var self = this, - // resig class can't handle _super in async contexts, by the - // time async callback comes back, _super has already been - // reset to a baseline value of this.prototype (or something - // like that) - old_home = this._super; - var Installer = new openerp.web.DataSet( - this, 'base.setup.installer'); - Installer.call('already_installed', [], function (installed_modules) { - if (!_(installed_modules).isEmpty()) { - return old_home.call(self); - } - self.action_manager.do_action({ - type: 'ir.actions.client', - tag: 'home.default' - }) - }, function (err, event) { - event.preventDefault(); - return old_home.call(self); - }); - } - }); - - openerp.web.client_actions.add( - 'home.default', 'openerp.web_default_home.DefaultHome'); - openerp.web_default_home.DefaultHome = openerp.web.View.extend({ - template: 'StaticHome', - start: function () { - var r = this._super(), self = this; - this.$element.delegate('.oe-static-home-tile-text button', 'click', function () { - self.install_module($(this).val()); - }); - return r; - }, - render: function () { - return this._super({ - url: window.location.protocol + '//' + window.location.host + window.location.pathname, - session: this.session, - rows: openerp.web_default_home.applications - }) - }, - install_module: function (module_name) { - var self = this; - var Modules = new openerp.web.DataSetSearch( - this, 'ir.module.module', null, - [['name', '=', module_name], ['state', '=', 'uninstalled']]); - var Upgrade = new openerp.web.DataSet(this, 'base.module.upgrade'); - - $.blockUI({message:'<img src="/web/static/src/img/throbber2.gif">'}); - Modules.read_slice(['id'], {}, function (records) { - if (!(records.length === 1)) { $.unblockUI(); return; } - Modules.call('state_update', - [_.pluck(records, 'id'), 'to install', ['uninstalled']], - function () { - Upgrade.call('upgrade_module', [[]], function () { - self.run_configuration_wizards(); - }); - } - ) - }); - }, - run_configuration_wizards: function () { - var self = this; - new openerp.web.DataSet(this, 'res.config').call('start', [[]], function (action) { - $.unblockUI(); - self.do_action(action, function () { - // TODO: less brutal reloading - window.location.reload(true); - }); - }); - } - }); -}; diff --git a/addons/web_default_home/static/src/xml/web_default_home.xml b/addons/web_default_home/static/src/xml/web_default_home.xml deleted file mode 100644 index 5ee11387db9..00000000000 --- a/addons/web_default_home/static/src/xml/web_default_home.xml +++ /dev/null @@ -1,34 +0,0 @@ -<template> - <div t-name="StaticHome" class="oe-static-home"> - <h1>Welcome to your new OpenERP instance.</h1> - <div class="oe-static-home-banner"> - <li>Remember to bookmark this page.</li> - <li>Remember your login: <i><t t-esc="session.login"/></i></li> - <li>Choose the first OpenERP Application you want to install..</li> - </div> - <div class="oe-static-home-tiles"> - <table width="100%"> - <tr t-foreach="rows" t-as="row"> - <td t-foreach="row" t-as="application" width="25%"> - <table class="oe-static-home-tile"> - <tr> - <td> - <div class="oe-static-home-tile-logo"> - <img t-att-src="'/web_default_home/static/src/img/' + application.module + '.png'"/> - </div> - </td> - <td> - <div class="oe-static-home-tile-text"> - <h2><t t-esc="application.name"/></h2> - <p><t t-esc="application.help"/></p> - <button type="button" t-att-value="application.module"> Install</button> - </div> - </td> - </tr> - </table> - </td> - </tr> - </table> - </div> - </div> -</template> |
