From 57911141bc9a14087767fe4be2915a5702e4c3e1 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Mon, 26 Sep 2011 18:43:23 +0200 Subject: [PATCH] [IMP] Move all installers into base_setup bzr revid: stw@openerp.com-20110926164323-ob28bw1zgfmaih9c --- addons/account/account_installer.xml | 20 -- addons/account/installer.py | 22 -- addons/association/__init__.py | 1 - addons/association/profile_association.py | 53 ----- addons/association/profile_association.xml | 18 -- addons/base_setup/base_setup.py | 194 +++++++++++++++++- addons/base_setup/base_setup_views.xml | 123 +++++++++-- addons/crm/__init__.py | 1 - addons/crm/crm_installer.py | 59 ------ addons/crm/crm_installer_view.xml | 24 --- addons/hr/__init__.py | 3 +- addons/hr/hr_installer.xml | 23 --- addons/hr/installer.py | 52 ----- addons/knowledge/__init__.py | 1 - addons/knowledge/__openerp__.py | 1 - addons/knowledge/installer.py | 52 ----- addons/knowledge/knowledge_installer.xml | 23 --- addons/marketing/__init__.py | 1 - addons/marketing/marketing_view.xml | 18 -- addons/marketing/marketing_wizard.py | 40 ---- addons/mrp/__init__.py | 1 - addons/mrp/installer.py | 52 ----- addons/mrp/mrp_installer.xml | 21 -- addons/profile_tools/__init__.py | 1 - addons/profile_tools/__openerp__.py | 1 - addons/profile_tools/installer.py | 40 ---- addons/profile_tools/misc_tools_installer.xml | 24 --- addons/project/__init__.py | 1 - addons/project/installer.py | 51 ----- addons/project/project_installer.xml | 21 -- addons/purchase/wizard/purchase_installer.py | 9 - addons/purchase/wizard/purchase_installer.xml | 16 -- addons/report_designer/__init__.py | 1 - addons/report_designer/__openerp__.py | 1 - addons/report_designer/installer.py | 35 ---- .../report_designer_installer.xml | 20 -- addons/sale/__init__.py | 1 - addons/sale/__openerp__.py | 1 - addons/sale/sale_installer.py | 43 ---- addons/sale/sale_installer.xml | 23 --- 40 files changed, 299 insertions(+), 793 deletions(-) delete mode 100644 addons/association/profile_association.py delete mode 100644 addons/crm/crm_installer.py delete mode 100644 addons/hr/installer.py delete mode 100644 addons/knowledge/installer.py delete mode 100644 addons/knowledge/knowledge_installer.xml delete mode 100644 addons/marketing/marketing_wizard.py delete mode 100644 addons/mrp/installer.py delete mode 100644 addons/profile_tools/installer.py delete mode 100644 addons/profile_tools/misc_tools_installer.xml delete mode 100644 addons/project/installer.py delete mode 100644 addons/report_designer/installer.py delete mode 100644 addons/report_designer/report_designer_installer.xml delete mode 100644 addons/sale/sale_installer.py delete mode 100644 addons/sale/sale_installer.xml diff --git a/addons/account/account_installer.xml b/addons/account/account_installer.xml index 361a371fb97..2ef7e982846 100644 --- a/addons/account/account_installer.xml +++ b/addons/account/account_installer.xml @@ -43,26 +43,6 @@ - - account.installer.modules.form - base.setup.installer - form - - - - - - - - - - - - - - - - Accounting Chart Configuration ir.actions.act_window diff --git a/addons/account/installer.py b/addons/account/installer.py index 33ddaa94b12..a6f60743d3d 100644 --- a/addons/account/installer.py +++ b/addons/account/installer.py @@ -239,26 +239,4 @@ class account_installer(osv.osv_memory): account_installer() -class account_installer_modules(osv.osv_memory): - _inherit = 'base.setup.installer' - _columns = { - 'account_analytic_plans': fields.boolean('Multiple Analytic Plans', - help="Allows invoice lines to impact multiple analytic accounts " - "simultaneously."), - 'account_payment': fields.boolean('Suppliers Payment Management', - help="Streamlines invoice payment and creates hooks to plug " - "automated payment systems in."), - 'account_followup': fields.boolean('Followups Management', - help="Helps you generate reminder letters for unpaid invoices, " - "including multiple levels of reminding and customized " - "per-partner policies."), - 'account_anglo_saxon': fields.boolean('Anglo-Saxon Accounting', - help="This module will support the Anglo-Saxons accounting methodology by " - "changing the accounting logic with stock transactions."), - 'account_asset': fields.boolean('Assets Management', - help="Helps you to manage your assets and their depreciation entries."), - } - -account_installer_modules() - # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/association/__init__.py b/addons/association/__init__.py index 5b34f17fec9..4716d0d109b 100644 --- a/addons/association/__init__.py +++ b/addons/association/__init__.py @@ -18,6 +18,5 @@ # along with this program. If not, see . # ############################################################################## -import profile_association # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/association/profile_association.py b/addons/association/profile_association.py deleted file mode 100644 index 0e66af14a1d..00000000000 --- a/addons/association/profile_association.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2010 Tiny SPRL (). -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## -from lxml import etree -from osv import fields, osv - -class profile_association_config_install_modules_wizard(osv.osv_memory): - _inherit = 'base.setup.installer' - - _columns = { - 'hr_expense':fields.boolean('Resources Management: Expenses Tracking', help="Tracks and manages employee expenses, and can " - "automatically re-invoice clients if the expenses are " - "project-related."), - 'event_project':fields.boolean('Event Management: Events', help="Helps you to manage and organize your events."), - 'project_gtd':fields.boolean('Getting Things Done', - help="GTD is a methodology to efficiently organise yourself and your tasks. This module fully integrates GTD principle with OpenERP's project management."), - 'wiki': fields.boolean('Wiki', help="Lets you create wiki pages and page groups in order " - "to keep track of business knowledge and share it with " - "and between your employees."), - } - - # Will be removed when rd-v61-al-config-depends will be done - def fields_view_get(self, cr, user, view_id=None, view_type='form', context=None, toolbar=False, submenu=False): - res = super(profile_association_config_install_modules_wizard, self).fields_view_get(cr, user, view_id, view_type, context, toolbar=toolbar, submenu=submenu) - doc = etree.XML(res['arch']) - for module in ['project_gtd','hr_expense']: - count = 0 - for node in doc.xpath("//field[@name='%s']" % (module)): - count = count + 1 - if count > 1: - node.set('invisible', '1') - res['arch'] = etree.tostring(doc) - return res - -profile_association_config_install_modules_wizard() -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/association/profile_association.xml b/addons/association/profile_association.xml index 12222ecbd90..8ce97cb2e43 100644 --- a/addons/association/profile_association.xml +++ b/addons/association/profile_association.xml @@ -1,24 +1,6 @@ - - Association Application Configuration - base.setup.installer - form - - - - - - - - - - - - - - 1: + node.set('invisible', '1') + res['arch'] = etree.tostring(doc) + #Checking sale module is installed or not + cr.execute("SELECT * from ir_module_module where state='installed' and name = 'sale'") + count = cr.fetchall() + if count: + doc = etree.XML(res['arch']) + nodes = doc.xpath("//field[@name='sale_crm']") + for node in nodes: + node.set('invisible', '0') + node.set('modifiers', '{}') + res['arch'] = etree.tostring(doc) + return res def _if_knowledge(self, cr, uid, ids, context=None): if self.pool.get('res.users').browse(cr, uid, uid, context=context)\ @@ -138,6 +324,8 @@ class base_setup_installer(osv.osv_memory): self.pool = pooler.restart_pool(cr.dbname, update_module=True)[1] return + + #Migrate data from another application Conf wiz class migrade_application_installer_modules(osv.osv_memory): @@ -158,11 +346,11 @@ class product_installer(osv.osv_memory): _name = 'product.installer' _inherit = 'res.config' _columns = { - 'customers': fields.selection([('create','Create'), ('import','Import')], 'Customers', size=32, required=True, help="Import or create customers"), + 'customers': fields.selection([('create','Create'), ('import','Import')], 'Customers', size=32, required=True, help="Import or create customers"), } _defaults = { - 'customers': 'create', + 'customers': 'create', } def execute(self, cr, uid, ids, context=None): diff --git a/addons/base_setup/base_setup_views.xml b/addons/base_setup/base_setup_views.xml index a6059148b51..023ebd7d2c1 100644 --- a/addons/base_setup/base_setup_views.xml +++ b/addons/base_setup/base_setup_views.xml @@ -39,22 +39,113 @@ - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/addons/crm/__init__.py b/addons/crm/__init__.py index 6e57fa5e8c3..214c5c3d450 100644 --- a/addons/crm/__init__.py +++ b/addons/crm/__init__.py @@ -25,7 +25,6 @@ import crm_segmentation import crm_meeting import crm_lead import crm_phonecall -import crm_installer import report import wizard import res_partner diff --git a/addons/crm/crm_installer.py b/addons/crm/crm_installer.py deleted file mode 100644 index fc3816c80fa..00000000000 --- a/addons/crm/crm_installer.py +++ /dev/null @@ -1,59 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2009 Tiny SPRL (). -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## - -from lxml import etree -from osv import fields, osv - -class crm_installer(osv.osv_memory): - _inherit = 'base.setup.installer' - - _columns = { - 'name': fields.char('Name', size=64), - 'crm_helpdesk': fields.boolean('Helpdesk', help="Manages a Helpdesk service."), - 'crm_fundraising': fields.boolean('Fundraising', help="This may help associations in their fundraising process and tracking."), - 'crm_claim': fields.boolean('Claims', help="Manages the suppliers and customers claims, including your corrective or preventive actions."), - 'import_sugarcrm': fields.boolean('Import Data from SugarCRM', help="Help you to import and update data from SugarCRM to OpenERP"), - 'crm_caldav': fields.boolean('Calendar Synchronizing', help="Helps you to synchronize the meetings with other calendar clients and mobiles."), - 'sale_crm': fields.boolean('Opportunity to Quotation', help="Create a Quotation from an Opportunity."), - 'fetchmail': fields.boolean('Fetch Emails', help="Allows you to receive E-Mails from POP/IMAP server."), - 'thunderbird': fields.boolean('Thunderbird Plug-In', help="Allows you to link your e-mail to OpenERP's documents. You can attach it to any existing one in OpenERP or create a new one."), - 'outlook': fields.boolean('MS-Outlook Plug-In', help="Allows you to link your e-mail to OpenERP's documents. You can attach it to any existing one in OpenERP or create a new one."), - 'wiki_sale_faq': fields.boolean('Sale FAQ', help="Helps you manage wiki pages for Frequently Asked Questions on Sales Application."), - 'import_google': fields.boolean('Google Import', help="Imports contacts and events from your google account."), - } - - def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False): - res = super(crm_installer, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar,submenu=False) - #Checking sale module is installed or not - cr.execute("SELECT * from ir_module_module where state='installed' and name = 'sale'") - count = cr.fetchall() - if count: - doc = etree.XML(res['arch']) - nodes = doc.xpath("//field[@name='sale_crm']") - for node in nodes: - node.set('invisible', '0') - node.set('modifiers', '{}') - res['arch'] = etree.tostring(doc) - return res - -crm_installer() - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/crm/crm_installer_view.xml b/addons/crm/crm_installer_view.xml index 782083e4669..0eab523e947 100644 --- a/addons/crm/crm_installer_view.xml +++ b/addons/crm/crm_installer_view.xml @@ -1,29 +1,5 @@ - - crm.installer.view - base.setup.installer - form - - - - - - - - - - - - - - - - - - - - Define Sales Team diff --git a/addons/hr/__init__.py b/addons/hr/__init__.py index 769e894f1bb..e2ff754ad35 100644 --- a/addons/hr/__init__.py +++ b/addons/hr/__init__.py @@ -21,9 +21,8 @@ import hr_department import hr -import installer import report import wizard -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/hr/hr_installer.xml b/addons/hr/hr_installer.xml index bd6e7ed3f6b..0b7880a032e 100644 --- a/addons/hr/hr_installer.xml +++ b/addons/hr/hr_installer.xml @@ -1,29 +1,6 @@ - - hr.installer.view - base.setup.installer - form - - - - - - - - - - - - - - - - - - - HR Management diff --git a/addons/hr/installer.py b/addons/hr/installer.py deleted file mode 100644 index 3916acaeb1e..00000000000 --- a/addons/hr/installer.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2009 Tiny SPRL (). -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## -from osv import fields, osv - -class hr_installer(osv.osv_memory): - _inherit = 'base.setup.installer' - _columns = { - # Human Resources Management - 'hr_holidays': fields.boolean('Leaves Management', - help="Tracks employee leaves, allocation requests and planning."), - 'hr_expense': fields.boolean('Expenses', - help="Tracks and manages employee expenses, and can " - "automatically re-invoice clients if the expenses are " - "project-related."), - 'hr_recruitment': fields.boolean('Recruitment Process', - help="Helps you manage and streamline your recruitment process."), - 'hr_timesheet_sheet':fields.boolean('Timesheets', - help="Tracks and helps employees encode and validate timesheets " - "and attendances."), - 'hr_contract': fields.boolean("Employee's Contracts", - help="Extends employee profiles to help manage their contracts."), - 'hr_evaluation': fields.boolean('Periodic Evaluations', - help="Lets you create and manage the periodic evaluation and " - "performance review of employees."), - 'hr_attendance': fields.boolean('Attendances', - help="Simplifies the management of employee's attendances."), - 'hr_payroll': fields.boolean('Payroll', - help="Generic Payroll system."), - 'hr_payroll_account': fields.boolean('Payroll Accounting', - help="Generic Payroll system Integrated with Accountings."), - } -hr_installer() - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/knowledge/__init__.py b/addons/knowledge/__init__.py index 3511d091ecb..9a3d6d2fbb6 100644 --- a/addons/knowledge/__init__.py +++ b/addons/knowledge/__init__.py @@ -19,6 +19,5 @@ # ############################################################################## -import installer # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/knowledge/__openerp__.py b/addons/knowledge/__openerp__.py index c2f1b2c7a88..f0f64160286 100644 --- a/addons/knowledge/__openerp__.py +++ b/addons/knowledge/__openerp__.py @@ -39,7 +39,6 @@ document and Wiki based tools. 'update_xml': [ 'security/knowledge_security.xml', 'security/ir.model.access.csv', - 'knowledge_installer.xml', 'knowledge_view.xml', ], 'demo_xml': ['knowledge_demo.xml'], diff --git a/addons/knowledge/installer.py b/addons/knowledge/installer.py deleted file mode 100644 index 0f6b29597de..00000000000 --- a/addons/knowledge/installer.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2009 Tiny SPRL (). -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## -from osv import fields, osv - -class knowledge_installer(osv.osv_memory): - _inherit = 'base.setup.installer' - - _columns = { - # Knowledge Management - 'document_ftp':fields.boolean('Shared Repositories (FTP)', - help="Provides an FTP access to your OpenERP's " - "Document Management System. It lets you access attachments " - "and virtual documents through a standard FTP client."), - 'document_webdav':fields.boolean('Shared Repositories (WebDAV)', - help="Provides a WebDAV access to your OpenERP's Document " - "Management System. Lets you access attachments and " - "virtual documents through your standard file browser."), - 'wiki':fields.boolean('Collaborative Content (Wiki)', - help="Lets you create wiki pages and page groups in order " - "to keep track of business knowledge and share it with " - "and between your employees."), - # Content templates - 'wiki_faq':fields.boolean('Template: Internal FAQ', - help="Creates a skeleton internal FAQ pre-filled with " - "documentation about OpenERP's Document Management " - "System."), - 'wiki_quality_manual':fields.boolean('Template: Quality Manual', - help="Creates an example skeleton for a standard quality manual."), - } - _defaults = { - 'document_ftp':True, - } - -knowledge_installer() diff --git a/addons/knowledge/knowledge_installer.xml b/addons/knowledge/knowledge_installer.xml deleted file mode 100644 index d9a4a45df66..00000000000 --- a/addons/knowledge/knowledge_installer.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - knowledge.installer.view - base.setup.installer - form - - - - - - - - - - - - - - - - - diff --git a/addons/marketing/__init__.py b/addons/marketing/__init__.py index c83787a6ef7..e68279cad8d 100644 --- a/addons/marketing/__init__.py +++ b/addons/marketing/__init__.py @@ -19,7 +19,6 @@ # ############################################################################## -import marketing_wizard # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/marketing/marketing_view.xml b/addons/marketing/marketing_view.xml index 9f70651e5ab..a697d586cd4 100644 --- a/addons/marketing/marketing_view.xml +++ b/addons/marketing/marketing_view.xml @@ -11,23 +11,5 @@ web_icon="images/marketing.png" web_icon_hover="images/marketing-hover.png"/> - - - marketing.installer.view - base.setup.installer - form - - - - - - - - - - - - - diff --git a/addons/marketing/marketing_wizard.py b/addons/marketing/marketing_wizard.py deleted file mode 100644 index cedba8151c9..00000000000 --- a/addons/marketing/marketing_wizard.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2010 Tiny SPRL (). -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## - -from osv import fields, osv - -class marketing_installer(osv.osv_memory): - _inherit = 'base.setup.installer' - _columns = { - 'email_template':fields.boolean('Automated E-Mails', - help="Helps you to design templates of emails and integrate them in your different processes."), - 'marketing_campaign':fields.boolean('Marketing Campaigns', - help="Helps you to manage marketing campaigns and automate actions and communication steps."), - 'crm_profiling':fields.boolean('Profiling Tools', - help="Helps you to perform segmentation of partners and design segmentation questionnaires") - } - _defaults = { - 'marketing_campaign': lambda *a: 1, - } - -marketing_installer() - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/mrp/__init__.py b/addons/mrp/__init__.py index 30367ec35f8..52a5bdda77b 100644 --- a/addons/mrp/__init__.py +++ b/addons/mrp/__init__.py @@ -22,7 +22,6 @@ import mrp import stock import product -import installer import wizard import report import company diff --git a/addons/mrp/installer.py b/addons/mrp/installer.py deleted file mode 100644 index 7fc7fea9c1e..00000000000 --- a/addons/mrp/installer.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2009 Tiny SPRL (). -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## -from osv import fields, osv - -class mrp_installer(osv.osv_memory): - _inherit = 'base.setup.installer' - - _columns = { - # Manufacturing Resource Planning - 'stock_location': fields.boolean('Advanced Routes', - help="Manages product routes and paths within and between " - "locations (e.g. warehouses)."), - 'mrp_jit': fields.boolean('Just In Time Scheduling', - help="Enables Just In Time computation of procurement orders." - "\n\nWhile it's more resource intensive than the default " - "setup, the JIT computer avoids having to wait for the " - "procurement scheduler to run or having to run the " - "procurement scheduler manually."), - 'mrp_operations': fields.boolean('Manufacturing Operations', - help="Enhances production orders with readiness states as well " - "as the start date and end date of execution of the order."), - 'mrp_subproduct': fields.boolean('MRP Subproducts', - help="Enables multiple product output from a single production " - "order: without this, a production order can have only one " - "output product."), - 'mrp_repair': fields.boolean('Repairs', - help="Enables warranty and repair management (and their impact " - "on stocks and invoicing)."), - } - - _defaults = { - 'mrp_jit': lambda self,cr,uid,*a: self.pool.get('res.users').browse(cr, uid, uid).view == 'simple', - } -mrp_installer() diff --git a/addons/mrp/mrp_installer.xml b/addons/mrp/mrp_installer.xml index af2a35b3ce7..5b6268e001b 100644 --- a/addons/mrp/mrp_installer.xml +++ b/addons/mrp/mrp_installer.xml @@ -1,26 +1,5 @@ - - mrp.installer.view - base.setup.installer - form - - - - - - - - - - - - - - - - - MRP Management 6 diff --git a/addons/profile_tools/__init__.py b/addons/profile_tools/__init__.py index 3511d091ecb..9a3d6d2fbb6 100644 --- a/addons/profile_tools/__init__.py +++ b/addons/profile_tools/__init__.py @@ -19,6 +19,5 @@ # ############################################################################## -import installer # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/profile_tools/__openerp__.py b/addons/profile_tools/__openerp__.py index 46528337f98..a381594bb0d 100644 --- a/addons/profile_tools/__openerp__.py +++ b/addons/profile_tools/__openerp__.py @@ -37,7 +37,6 @@ modules like share, lunch, pad, idea, survey and subscription. 'website': 'http://www.openerp.com', 'init_xml': [], 'update_xml': [ - 'misc_tools_installer.xml', ], 'demo_xml': [], 'installable': True, diff --git a/addons/profile_tools/installer.py b/addons/profile_tools/installer.py deleted file mode 100644 index 44258234d11..00000000000 --- a/addons/profile_tools/installer.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2009 Tiny SPRL (). -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## -from osv import fields, osv - -class misc_tools_installer(osv.osv_memory): - _inherit = 'base.setup.installer' - - _columns = { - 'lunch':fields.boolean('Lunch',help='A simple module to help you to manage Lunch orders.'), - 'subscription':fields.boolean('Recurring Documents',help='Helps to generate automatically recurring documents.'), - 'survey':fields.boolean('Survey',help='Allows you to organize surveys.'), - 'idea':fields.boolean('Ideas Box',help='Promote ideas of the employees, votes and discussion on best ideas.'), - 'share':fields.boolean('Web Share',help='Allows you to give restricted access to your OpenERP documents to external users, ' \ - 'such as customers, suppliers, or accountants. You can share any OpenERP Menu such as your project tasks, support requests, invoices, etc.'), - 'pad': fields.boolean('Collaborative Note Pads', - help="This module creates a tighter integration between a Pad " - "instance of your choosing and your OpenERP Web Client by " - "letting you easily link pads to OpenERP objects via " - "OpenERP attachments."), - } -misc_tools_installer() - diff --git a/addons/profile_tools/misc_tools_installer.xml b/addons/profile_tools/misc_tools_installer.xml deleted file mode 100644 index 703a8aed9c7..00000000000 --- a/addons/profile_tools/misc_tools_installer.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - misc_tools.installer.view - base.setup.installer - form - - - - - - - - - - - - - - - - - - diff --git a/addons/project/__init__.py b/addons/project/__init__.py index 142cd98e485..01bef264e02 100644 --- a/addons/project/__init__.py +++ b/addons/project/__init__.py @@ -21,7 +21,6 @@ import project import company -import installer import report import wizard import res_partner diff --git a/addons/project/installer.py b/addons/project/installer.py deleted file mode 100644 index 36b458da296..00000000000 --- a/addons/project/installer.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2009 Tiny SPRL (). -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## - -from osv import fields, osv - -class project_installer(osv.osv_memory): - _inherit = 'base.setup.installer' - - _columns = { - # Project Management - 'project_long_term': fields.boolean( - 'Long Term Planning', - help="Enables long-term projects tracking, including " - "multiple-phase projects and resource allocation handling."), - 'hr_timesheet_sheet': fields.boolean('Timesheets', - help="Tracks and helps employees encode and validate timesheets " - "and attendances."), - 'project_timesheet': fields.boolean('Bill Time on Tasks', - help="Helps generate invoices based on time spent on tasks, if activated on the project."), - 'account_budget': fields.boolean('Budgets', - help="Helps accountants manage analytic and crossover budgets."), - 'project_issue': fields.boolean('Issues Tracker', - help="Automatically synchronizes project tasks and crm cases."), - # Methodologies - 'project_scrum': fields.boolean('Methodology: SCRUM', - help="Implements and tracks the concepts and task types defined " - "in the SCRUM methodology."), - 'project_gtd': fields.boolean('Methodology: Getting Things Done', - help="GTD is a methodology to efficiently organise yourself and your tasks. This module fully integrates GTD principle with OpenERP's project management."), - } -project_installer() - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/project/project_installer.xml b/addons/project/project_installer.xml index 3e04b919edd..d25635b8248 100644 --- a/addons/project/project_installer.xml +++ b/addons/project/project_installer.xml @@ -2,27 +2,6 @@ - - project.installer.view - base.setup.installer - form - - - - - - - - - - - - - - - - - Project Management diff --git a/addons/purchase/wizard/purchase_installer.py b/addons/purchase/wizard/purchase_installer.py index c6d70947893..1fe462ce191 100644 --- a/addons/purchase/wizard/purchase_installer.py +++ b/addons/purchase/wizard/purchase_installer.py @@ -20,15 +20,6 @@ ############################################################################## from osv import fields, osv -class purchase_installer(osv.osv_memory): - _inherit = 'base.setup.installer' - - _columns = { - 'purchase_requisition':fields.boolean('Purchase Requisition',help="Manages your Purchase Requisition and allows you to easily keep track and manage all your purchase orders."), - 'purchase_analytic_plans': fields.boolean('Purchase Analytic Plans',help="Manages analytic distribution and purchase orders.") - } -purchase_installer() - class purchase_config_wizard(osv.osv_memory): _name = 'purchase.config.wizard' diff --git a/addons/purchase/wizard/purchase_installer.xml b/addons/purchase/wizard/purchase_installer.xml index cf9b6a985db..31c6a7ad6bc 100644 --- a/addons/purchase/wizard/purchase_installer.xml +++ b/addons/purchase/wizard/purchase_installer.xml @@ -1,22 +1,6 @@ - - Purchases Application Configuration - base.setup.installer - form - - - - - - - - - - - - Create or Import Suppliers diff --git a/addons/report_designer/__init__.py b/addons/report_designer/__init__.py index 3511d091ecb..9a3d6d2fbb6 100644 --- a/addons/report_designer/__init__.py +++ b/addons/report_designer/__init__.py @@ -19,6 +19,5 @@ # ############################################################################## -import installer # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/report_designer/__openerp__.py b/addons/report_designer/__openerp__.py index 73982086c8f..00296a1d83f 100644 --- a/addons/report_designer/__openerp__.py +++ b/addons/report_designer/__openerp__.py @@ -37,7 +37,6 @@ modules like base_report_designer and base_report_creator. 'init_xml': [], 'update_xml': [ 'security/ir.model.access.csv', - 'report_designer_installer.xml', ], 'demo_xml': [], 'installable': True, diff --git a/addons/report_designer/installer.py b/addons/report_designer/installer.py deleted file mode 100644 index e4bbc4ffa93..00000000000 --- a/addons/report_designer/installer.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2009 Tiny SPRL (). -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## -from osv import fields, osv - -class report_designer_installer(osv.osv_memory): - _inherit = 'base.setup.installer' - - _columns = { - # Reporting - 'base_report_designer':fields.boolean('OpenOffice Report Designer',help="Adds wizards to Import/Export .SXW report which " - "you can modify in OpenOffice.Once you have modified it you can " - "upload the report using the same wizard."), - 'base_report_creator':fields.boolean('Query Builder',help="Allows you to create any statistic " - "reports on several objects. It's a SQL query builder and browser for end users."), - } -report_designer_installer() - diff --git a/addons/report_designer/report_designer_installer.xml b/addons/report_designer/report_designer_installer.xml deleted file mode 100644 index d8d1798578e..00000000000 --- a/addons/report_designer/report_designer_installer.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - report_designer.installer.view - base.setup.installer - form - - - - - - - - - - - - - - diff --git a/addons/sale/__init__.py b/addons/sale/__init__.py index 3c7af56e808..c7be8e7e14b 100644 --- a/addons/sale/__init__.py +++ b/addons/sale/__init__.py @@ -25,7 +25,6 @@ import sale import stock -import sale_installer import wizard import report import company diff --git a/addons/sale/__openerp__.py b/addons/sale/__openerp__.py index c983edc881e..529489101ef 100644 --- a/addons/sale/__openerp__.py +++ b/addons/sale/__openerp__.py @@ -79,7 +79,6 @@ Dashboard for Sales Manager that includes: 'sale_sequence.xml', 'sale_data.xml', 'sale_view.xml', - 'sale_installer.xml', 'report/sale_report_view.xml', 'sale_report.xml', 'stock_view.xml', diff --git a/addons/sale/sale_installer.py b/addons/sale/sale_installer.py deleted file mode 100644 index dcac79270b2..00000000000 --- a/addons/sale/sale_installer.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2010 Tiny SPRL (). -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## - -from osv import fields, osv - -class sale_installer(osv.osv_memory): - _inherit = 'base.setup.installer' - - _columns = { - 'delivery': fields.boolean('Delivery Costs', - help="Allows you to compute delivery costs on your quotations."), - 'sale_journal': fields.boolean('Invoicing journals', - help="Allows you to group and invoice your delivery orders according to different invoicing types: daily, weekly, etc."), - 'sale_layout': fields.boolean('Sales Orders Print Layout', - help="Provides some features to improve the layout of the Sales Order reports."), - 'sale_margin': fields.boolean('Margins in Sales Orders', - help="Gives the margin of profitability by calculating " - "the difference between Unit Price and Cost Price."), - 'sale_order_dates': fields.boolean('Full Dates on Sales Orders', - help="Adds commitment, requested and effective dates on Sales Orders."), - } - -sale_installer() - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/sale/sale_installer.xml b/addons/sale/sale_installer.xml deleted file mode 100644 index ae48e9f14b2..00000000000 --- a/addons/sale/sale_installer.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - sale.installer.view - base.setup.installer - form - - - - - - - - - - - - - - - - -