diff --git a/addons/account/__init__.py b/addons/account/__init__.py index f1100ca4942..81a9f7972c2 100644 --- a/addons/account/__init__.py +++ b/addons/account/__init__.py @@ -20,6 +20,7 @@ ############################################################################## import account +import installer import project import partner import invoice diff --git a/addons/account/__terp__.py b/addons/account/__terp__.py index 359d6d3a4c9..d6465027059 100644 --- a/addons/account/__terp__.py +++ b/addons/account/__terp__.py @@ -58,6 +58,7 @@ 'process/supplier_invoice_process.xml', 'sequence_view.xml', 'company_view.xml', + 'account_installer.xml', ], 'demo_xml': [ 'account_demo.xml', diff --git a/addons/account/account_installer.xml b/addons/account/account_installer.xml new file mode 100644 index 00000000000..4a1a1274e9f --- /dev/null +++ b/addons/account/account_installer.xml @@ -0,0 +1,63 @@ + + + + account.installer.view + account.installer + form + + + +
+ Accounting Modules Installation +
+ + + + + + + + + + Install Modules + +
+
+
+ + + Accounting Modules Installation + ir.actions.act_window + account.installer + + form + form + new + + + + + 1 + +
+
diff --git a/addons/account/installer.py b/addons/account/installer.py new file mode 100644 index 00000000000..2e7ebb5ed44 --- /dev/null +++ b/addons/account/installer.py @@ -0,0 +1,38 @@ +# -*- 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 account_installer(osv.osv_memory): + _name = 'account.installer' + _inherit = 'res.config.installer' + + _columns = { + # Accounting + 'account_analytic_default':fields.boolean('Analytic Accounting'), + 'account_analytic_plans':fields.boolean('Multiple Analytic Plans'), + 'account_payment':fields.boolean('Suppliers Payment Management'), + 'account_followup':fields.boolean('Followups Management'), + 'account_asset':fields.boolean('Assets Management') + } + _defaults = { + 'account_analytic_default':True, + } +account_installer() diff --git a/addons/base_setup/__init__.py b/addons/base_setup/__init__.py index f8a7a810426..2e2da2196e5 100644 --- a/addons/base_setup/__init__.py +++ b/addons/base_setup/__init__.py @@ -19,6 +19,7 @@ # ############################################################################## +import installer import wizard # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/base_setup/__terp__.py b/addons/base_setup/__terp__.py index 88f57f599df..6f7f4337740 100644 --- a/addons/base_setup/__terp__.py +++ b/addons/base_setup/__terp__.py @@ -41,7 +41,9 @@ 'website': 'http://www.openerp.com', 'depends': ['base'], 'init_xml': ['base_setup_data.xml'], - 'update_xml': ['security/ir.model.access.csv', 'base_setup_wizard.xml'], + 'update_xml': ['security/ir.model.access.csv', + 'base_setup_wizard.xml', + 'base_setup_installer.xml'], 'demo_xml': ['base_setup_demo.xml'], 'installable': True, 'active': True, diff --git a/addons/base_setup/base_setup_installer.xml b/addons/base_setup/base_setup_installer.xml new file mode 100644 index 00000000000..b5735d7075b --- /dev/null +++ b/addons/base_setup/base_setup_installer.xml @@ -0,0 +1,71 @@ + + + + base.setup.installer.view + base.setup.installer + form + + + +
+ Base Setup Modules Installation +
+ + + + + + + + + + Install Modules + +
+
+
+ + + Base Setup Modules Installation + ir.actions.act_window + base.setup.installer + + form + form + new + + + + + 1 + +
+
diff --git a/addons/base_setup/installer.py b/addons/base_setup/installer.py new file mode 100644 index 00000000000..8aa2ec23ed4 --- /dev/null +++ b/addons/base_setup/installer.py @@ -0,0 +1,78 @@ +# -*- 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 +from itertools import chain +from operator import itemgetter +import netsvc + +class base_setup_installer(osv.osv_memory): + _name = 'base.setup.installer' + _inherit = 'res.config.installer' + + def _get_charts(self, cr, uid, context=None): + modules = self.pool.get('ir.module.module') + ids = modules.search(cr, uid, [('category_id','=','Account Charts'), + ('state','!=','installed')]) + return list( + sorted(((m.name, m.shortdesc) + for m in modules.browse(cr, uid, ids)), + key=itemgetter(1))) + + def _if_account(self, cr, uid, ids, context=None): + chart = self.read(cr, uid, ids, ['charts'], + context=context)[0]['charts'] + self.logger.notifyChannel( + 'installer', netsvc.LOG_DEBUG, + 'Addon "account" selected, installing chart of accounts %s'%chart) + return [chart] + + _install_if = { + ('sale','crm'): ['sale_crm'], + ('sale','project'): ['project_mrp'], + } + _columns = { + # Generic modules + 'crm':fields.boolean('Customer Relationship Management'), + 'sale':fields.boolean('Sales Management'), + 'project':fields.boolean('Project Management'), + 'knowledge':fields.boolean('Knowledge Management'), + 'stock':fields.boolean('Warehouse Management'), + 'mrp':fields.boolean('Manufacturing'), + 'account':fields.boolean('Financial & Accounting'), + 'charts':fields.selection(_get_charts, 'Chart of Accounts', + readonly=True), + 'purchase':fields.boolean('Purchase Management'), + 'hr':fields.boolean('Human Resources'), + 'pos':fields.boolean('Point of Sales'), + 'marketing':fields.boolean('Marketing'), + 'tools':fields.boolean('Miscellaneous Tools'), + 'report_design':fields.boolean('Advanced Reporting'), + # Vertical modules + 'profile_association':fields.boolean('Associations'), + 'profile_training':fields.boolean('Training Centers'), + 'profile_auction':fields.boolean('Auction Houses'), + 'profile_bookstore':fields.boolean('Book Stores'), + } + _defaults = { + 'crm': True, + } +base_setup_installer() + diff --git a/addons/hr/__init__.py b/addons/hr/__init__.py index fbb6ead1fed..2551ce843d1 100644 --- a/addons/hr/__init__.py +++ b/addons/hr/__init__.py @@ -20,6 +20,7 @@ ############################################################################## import hr +import installer import hr_department import report diff --git a/addons/hr/__terp__.py b/addons/hr/__terp__.py index e05d0ce36fb..6f405e2a03d 100644 --- a/addons/hr/__terp__.py +++ b/addons/hr/__terp__.py @@ -43,7 +43,8 @@ 'security/ir.model.access.csv', 'hr_view.xml', 'hr_department_view.xml', - 'process/hr_process.xml' + 'process/hr_process.xml', + 'hr_installer.xml' ], 'demo_xml': ['hr_demo.xml', 'hr_department_demo.xml'], 'installable': True, diff --git a/addons/hr/hr_installer.xml b/addons/hr/hr_installer.xml new file mode 100644 index 00000000000..4f7c1993963 --- /dev/null +++ b/addons/hr/hr_installer.xml @@ -0,0 +1,65 @@ + + + + hr.installer.view + hr.installer + form + + + +
+ Human Resources Modules Installation +
+ + + + + + + + + + Install Modules + +
+
+
+ + + Human Resources Modules Installation + ir.actions.act_window + hr.installer + + form + form + new + + + + + 1 + +
+
diff --git a/addons/hr/installer.py b/addons/hr/installer.py new file mode 100644 index 00000000000..69346199ddb --- /dev/null +++ b/addons/hr/installer.py @@ -0,0 +1,41 @@ +# -*- 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): + _name = 'hr.installer' + _inherit = 'res.config.installer' + + _columns = { + # Human Resources Management + 'hr_holidays':fields.boolean('Holidays / Leaves Management'), + 'hr_expense':fields.boolean('Expenses'), + 'hr_jobs':fields.boolean('Recruitement Process'), + 'hr_timesheet_sheet':fields.boolean('Timesheets'), + 'hr_contract':fields.boolean("Employee's Contracts"), + 'hr_evaluation':fields.boolean('Periodic Evaluations'), + 'hr_attendance':fields.boolean('Attendances (Sign In/Out)'), + } + _defaults = { + 'hr_holidays': True, + 'hr_expense': True, + } +hr_installer() diff --git a/addons/knowledge/__init__.py b/addons/knowledge/__init__.py new file mode 100644 index 00000000000..3511d091ecb --- /dev/null +++ b/addons/knowledge/__init__.py @@ -0,0 +1,24 @@ +# -*- 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 . +# +############################################################################## + +import installer + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/knowledge/__terp__.py b/addons/knowledge/__terp__.py new file mode 100644 index 00000000000..361e0143a2c --- /dev/null +++ b/addons/knowledge/__terp__.py @@ -0,0 +1,39 @@ +# -*- 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 . +# +############################################################################## + + +{ + "name" : "Knowledge Management System", + "version" : "1.0", + "depends" : ["base"], + "author" : "Tiny", + "description": """Installer for knowledge-based tools + """, + 'website': 'http://www.openerp.com', + 'init_xml': [], + 'update_xml': [ + 'knowledge_installer.xml', + ], + 'demo_xml': [], + 'installable': True, + 'active': False, +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/knowledge/installer.py b/addons/knowledge/installer.py new file mode 100644 index 00000000000..71c54de8d99 --- /dev/null +++ b/addons/knowledge/installer.py @@ -0,0 +1,40 @@ +# -*- 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): + _name = 'knowledge.installer' + _inherit = 'res.config.installer' + + _columns = { + # Knowledge Management + 'document_ftp':fields.boolean('Shared Repositories (FTP)'), + 'document_webdav':fields.boolean('Shared Repositories (WebDAV)'), + 'wiki':fields.boolean('Collaborative Content (Wiki)'), + # Templates of Content + 'wiki_faq':fields.boolean('Internal FAQ'), + 'wiki_quality_manual':fields.boolean('Quality Manual'), + } + _defaults = { + 'document_ftp':True, + } + +knowledge_installer() diff --git a/addons/knowledge/knowledge_installer.xml b/addons/knowledge/knowledge_installer.xml new file mode 100644 index 00000000000..5f8c19e568c --- /dev/null +++ b/addons/knowledge/knowledge_installer.xml @@ -0,0 +1,65 @@ + + + + knowledge.installer.view + knowledge.installer + form + + + +
+ Knowledge Modules Installation +
+ + + + + + + + + + Install Modules + +
+
+
+ + + Knowledge Modules Installation + ir.actions.act_window + knowledge.installer + + form + form + new + + + + + 1 + +
+
diff --git a/addons/mrp/__init__.py b/addons/mrp/__init__.py index bd7995b9922..90ca012bc48 100644 --- a/addons/mrp/__init__.py +++ b/addons/mrp/__init__.py @@ -20,6 +20,7 @@ ############################################################################## import mrp +import installer import wizard import report import company diff --git a/addons/mrp/__terp__.py b/addons/mrp/__terp__.py index 8e33c503db9..686cc1154ee 100644 --- a/addons/mrp/__terp__.py +++ b/addons/mrp/__terp__.py @@ -69,7 +69,8 @@ 'company_view.xml', 'process/stockable_product_process.xml', 'process/service_product_process.xml', - 'process/procurement_process.xml' + 'process/procurement_process.xml', + 'mrp_installer.xml', ], 'demo_xml': ['mrp_demo.xml', 'mrp_order_point.xml'], 'installable': True, diff --git a/addons/mrp/installer.py b/addons/mrp/installer.py new file mode 100644 index 00000000000..4d7936c91c2 --- /dev/null +++ b/addons/mrp/installer.py @@ -0,0 +1,35 @@ +# -*- 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): + _name = 'mrp.installer' + _inherit = 'res.config.installer' + + _columns = { + # Manufacturing Resource Planning + 'stock_location':fields.boolean('Advanced Routes'), + 'mrp_jit':fields.boolean('Just In Time Scheduling'), + 'mrp_operations':fields.boolean('Manufacturing Operations'), + 'mrp_subproduct':fields.boolean('MRP Subproducts'), + 'mrp_repair':fields.boolean('Repairs'), + } +mrp_installer() diff --git a/addons/mrp/mrp_installer.xml b/addons/mrp/mrp_installer.xml new file mode 100644 index 00000000000..a6b2f7ed1b6 --- /dev/null +++ b/addons/mrp/mrp_installer.xml @@ -0,0 +1,63 @@ + + + + mrp.installer.view + mrp.installer + form + + + +
+ MRP Modules Installation +
+ + + + + + + + + + Install Modules + +
+
+
+ + + MRP Modules Installation + ir.actions.act_window + mrp.installer + + form + form + new + + + + + 1 + +
+
diff --git a/addons/project/__init__.py b/addons/project/__init__.py index 4e970d4c845..6347cd9dd29 100644 --- a/addons/project/__init__.py +++ b/addons/project/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- ############################################################################## -# +# # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (). # @@ -15,16 +15,16 @@ # 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 . +# along with this program. If not, see . # ############################################################################## import project import company +import installer import project_mailgate import report import wizard # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: - diff --git a/addons/project/__terp__.py b/addons/project/__terp__.py index 533b6d53ef1..f23d7d55697 100644 --- a/addons/project/__terp__.py +++ b/addons/project/__terp__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- ############################################################################## -# +# # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (). # @@ -15,7 +15,7 @@ # 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 . +# along with this program. If not, see . # ############################################################################## @@ -31,15 +31,15 @@ works done on tasks, eso. It is able to render planning, order tasks, eso. """, "init_xml" : [], - "demo_xml" : ["project_demo.xml"], "update_xml": [ "security/project_security.xml", "security/ir.model.access.csv", - "project_data.xml", - "project_wizard.xml", - "project_view.xml", - "project_report.xml", - "process/task_process.xml" + "project_data.xml", + "project_wizard.xml", + "project_view.xml", + "project_report.xml", + "process/task_process.xml", + "project_installer.xml", ], 'demo_xml': ['project_demo.xml'], 'installable': True, diff --git a/addons/project/installer.py b/addons/project/installer.py new file mode 100644 index 00000000000..d6a56bd453c --- /dev/null +++ b/addons/project/installer.py @@ -0,0 +1,40 @@ +# -*- 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): + _name = 'project.installer' + _inherit = 'res.config.installer' + + _columns = { + # Project Management + 'project_long_term':fields.boolean('Long Term Planning'), + 'project_wiki':fields.boolean('Specifications in a Wiki'), + 'hr_timesheet_sheet':fields.boolean('Timesheets'), + 'hr_timesheet_invoice':fields.boolean('Invoice Based on Hours'), + 'account_budget':fields.boolean('Budgets'), + 'project_messages':fields.boolean('Project Messages'), + 'project_crm':fields.boolean('Issues Tracker & Features Requests'), + # Methodologies + 'scrum':fields.boolean('SCRUM'), + 'project_gtd':fields.boolean('Getting Things Done'), + } +project_installer() diff --git a/addons/project/project_installer.xml b/addons/project/project_installer.xml new file mode 100644 index 00000000000..4d8b40103c1 --- /dev/null +++ b/addons/project/project_installer.xml @@ -0,0 +1,69 @@ + + + + project.installer.view + project.installer + form + + + +
+ Project Modules Installation +
+ + + + + + + + + + Install Modules + +
+
+
+ + + Project Modules Installation + ir.actions.act_window + project.installer + + form + form + new + + + + + 1 + +
+
diff --git a/addons/project_messages/__init__.py b/addons/project_messages/__init__.py new file mode 100644 index 00000000000..de63635487f --- /dev/null +++ b/addons/project_messages/__init__.py @@ -0,0 +1,24 @@ +# -*- 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 . +# +############################################################################## + +import messages + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/project_messages/__terp__.py b/addons/project_messages/__terp__.py new file mode 100644 index 00000000000..54e1c77daeb --- /dev/null +++ b/addons/project_messages/__terp__.py @@ -0,0 +1,38 @@ +# -*- 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 . +# +############################################################################## + + +{ + "name" : "In-Project Messaging System", + "version" : "1.0", + "depends" : ["project"], + "author" : "Tiny", + "description": """Provides the ability to send small messages to other + users on the project. + """, + 'website': 'http://www.openerp.com', + 'init_xml': [], + 'update_xml': [], + 'demo_xml': [], + 'installable': True, + 'active': False, +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/project_messages/messages.py b/addons/project_messages/messages.py new file mode 100644 index 00000000000..dc505f9073f --- /dev/null +++ b/addons/project_messages/messages.py @@ -0,0 +1,67 @@ +# -*- 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 +import netsvc + +class messages(osv.osv): + """Message from one user to another within a project + """ + _name = 'project.messages' + logger = netsvc.Logger() + + _columns = { + 'to_id':fields.many2one('res.users', 'To', ondelete="CASCADE"), + 'project_id':fields.many2one('project.project', 'Project', + required=True, ondelete="CASCADE"), + 'message':fields.text('Message', required=True), + } + + _defaults = { + 'from_id':lambda self, cr, uid, context: uid, + 'to_id':None, + } + + def broadcast(self, cr, uid, project_id, message): + """ Send a message to all the users of a project. + The sender of the message is the current user. + + The method returns the new message's id. + + Arguments: + - `project_id`: the id of the project to broadcast to + - `message`: the message to broadcast + """ + return self.create(cr, uid, { + 'to_id':None, + 'project_id':project_id, + 'message':message + }, context=context) +messages() + +class project_with_message(osv.osv): + _inherit = 'project.project' + + _columns = { + 'message_ids':fields.one2many( + 'project.messages', 'project_id', 'Messages', + domain="[('to_id','in',[uid,False])]"), + } +project_with_message() diff --git a/addons/report/__init__.py b/addons/report/__init__.py new file mode 100644 index 00000000000..3511d091ecb --- /dev/null +++ b/addons/report/__init__.py @@ -0,0 +1,24 @@ +# -*- 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 . +# +############################################################################## + +import installer + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/report/__terp__.py b/addons/report/__terp__.py new file mode 100644 index 00000000000..3ec06120c87 --- /dev/null +++ b/addons/report/__terp__.py @@ -0,0 +1,39 @@ +# -*- 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 . +# +############################################################################## + + +{ + "name" : "Reporting Tools", + "version" : "1.0", + "depends" : ["base"], + "author" : "Tiny", + "description": """Installer for reporting tools selection + """, + 'website': 'http://www.openerp.com', + 'init_xml': [], + 'update_xml': [ + 'report_installer.xml', + ], + 'demo_xml': [], + 'installable': True, + 'active': False, +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/report/installer.py b/addons/report/installer.py new file mode 100644 index 00000000000..60676de29f2 --- /dev/null +++ b/addons/report/installer.py @@ -0,0 +1,34 @@ +# -*- 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_installer(osv.osv_memory): + _name = 'report.installer' + _inherit = 'res.config.installer' + + _columns = { + # Reporting + 'base_report_designer':fields.boolean('OpenOffice Report Designer'), + 'base_report_creator':fields.boolean('Query Builder'), + 'olap':fields.boolean('Business Intelligence Report'), + } +report_installer() + diff --git a/addons/report/report_installer.xml b/addons/report/report_installer.xml new file mode 100644 index 00000000000..6663ee7d1ff --- /dev/null +++ b/addons/report/report_installer.xml @@ -0,0 +1,61 @@ + + + + report.installer.view + report.installer + form + + + +
+ Report Modules Installation +
+ + + + + + + + + + Install Modules + +
+
+
+ + + Report Modules Installation + ir.actions.act_window + report.installer + + form + form + new + + + + + 1 + +
+
diff --git a/addons/tools/__init__.py b/addons/tools/__init__.py new file mode 100644 index 00000000000..3511d091ecb --- /dev/null +++ b/addons/tools/__init__.py @@ -0,0 +1,24 @@ +# -*- 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 . +# +############################################################################## + +import installer + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/tools/__terp__.py b/addons/tools/__terp__.py new file mode 100644 index 00000000000..7a3d0304ccf --- /dev/null +++ b/addons/tools/__terp__.py @@ -0,0 +1,39 @@ +# -*- 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 . +# +############################################################################## + + +{ + "name" : "Miscellaneous Tools", + "version" : "1.0", + "depends" : ["base"], + "author" : "Tiny", + "description": """Installer for various interesting tools + """, + 'website': 'http://www.openerp.com', + 'init_xml': [], + 'update_xml': [ + 'tools_installer.xml', + ], + 'demo_xml': [], + 'installable': True, + 'active': False, +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/tools/installer.py b/addons/tools/installer.py new file mode 100644 index 00000000000..7d7bdb37403 --- /dev/null +++ b/addons/tools/installer.py @@ -0,0 +1,39 @@ +# -*- 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 tools_installer(osv.osv_memory): + _name = 'tools.installer' + _inherit = 'res.config.installer' + + _columns = { + # Tools + 'lunch':fields.boolean('Lunch Orders'), + 'subscription':fields.boolean('Recurring Documents'), + 'survey':fields.boolean('Survey'), + 'audittrail':fields.boolean('Audit Trail'), + } + _defaults = { + 'lunch': True, + } + +tools_installer() + diff --git a/addons/tools/tools_installer.xml b/addons/tools/tools_installer.xml new file mode 100644 index 00000000000..2c8aceeff6b --- /dev/null +++ b/addons/tools/tools_installer.xml @@ -0,0 +1,62 @@ + + + + tools.installer.view + tools.installer + form + + + +
+ Tools Modules Installation +
+ + + + + + + + + + Install Modules + +
+
+
+ + + Tools Modules Installation + ir.actions.act_window + tools.installer + + form + form + new + + + + + 1 + +
+
diff --git a/addons/wiki/__terp__.py b/addons/wiki/__terp__.py index 6b7a36090e6..b1ade89924e 100644 --- a/addons/wiki/__terp__.py +++ b/addons/wiki/__terp__.py @@ -39,7 +39,7 @@ 'wizard/wizard_view.xml', 'security/ir.model.access.csv' ], - 'demo_xml': ['data/wiki_faq.xml'], + 'demo_xml': [], 'installable': True, 'active': False, 'certificate': '0086363630317', diff --git a/addons/wiki_faq/__init__.py b/addons/wiki_faq/__init__.py new file mode 100644 index 00000000000..938f045b9fd --- /dev/null +++ b/addons/wiki_faq/__init__.py @@ -0,0 +1,22 @@ +# -*- 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 . +# +############################################################################## + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/wiki_faq/__terp__.py b/addons/wiki_faq/__terp__.py new file mode 100644 index 00000000000..3d06108cb5b --- /dev/null +++ b/addons/wiki_faq/__terp__.py @@ -0,0 +1,37 @@ +# -*- 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 . +# +############################################################################## + +{ + 'name': 'Document Management - Wiki - FAQ', + 'version': '1.0', + 'category': 'Generic Modules/Others', + 'description': """FAQ Template + """, + 'author': 'Tiny', + 'website': 'http://openerp.com', + 'depends': ['wiki'], + 'init_xml': [], + 'update_xml': ['wiki_faq.xml'], + 'demo_xml': [], + 'installable': True, + 'active': False, +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/wiki/data/wiki_faq.xml b/addons/wiki_faq/wiki_faq.xml similarity index 94% rename from addons/wiki/data/wiki_faq.xml rename to addons/wiki_faq/wiki_faq.xml index eabd591d232..0bf1616fdc2 100644 --- a/addons/wiki/data/wiki_faq.xml +++ b/addons/wiki_faq/wiki_faq.xml @@ -3,11 +3,10 @@ Internal FAQ + list == Question == -... - == Answer == == External Links == @@ -23,8 +22,7 @@ 1 2 Initial Page - -== Question == + == Question == What's the Bug Tracker ? @@ -61,8 +59,7 @@ Integration Benefits: 1 1 Initial Page - -== Question == + == Question == What's the Document Management System ? diff --git a/addons/wiki_quality_manual/__init__.py b/addons/wiki_quality_manual/__init__.py new file mode 100644 index 00000000000..938f045b9fd --- /dev/null +++ b/addons/wiki_quality_manual/__init__.py @@ -0,0 +1,22 @@ +# -*- 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 . +# +############################################################################## + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/wiki_quality_manual/__terp__.py b/addons/wiki_quality_manual/__terp__.py new file mode 100644 index 00000000000..9729c4c4910 --- /dev/null +++ b/addons/wiki_quality_manual/__terp__.py @@ -0,0 +1,37 @@ +# -*- 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 . +# +############################################################################## + +{ + 'name': 'Document Management - Wiki - Quality Manual', + 'version': '1.0', + 'category': 'Generic Modules/Others', + 'description': """Quality Manual Template + """, + 'author': 'Tiny', + 'website': 'http://openerp.com', + 'depends': ['wiki'], + 'init_xml': [], + 'update_xml': ['wiki_quality_manual.xml'], + 'demo_xml': [], + 'installable': True, + 'active': False, +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/wiki_quality_manual/wiki_quality_manual.xml b/addons/wiki_quality_manual/wiki_quality_manual.xml new file mode 100644 index 00000000000..e8601867e4a --- /dev/null +++ b/addons/wiki_quality_manual/wiki_quality_manual.xml @@ -0,0 +1,101 @@ + + + + + Quality Manual + quality, faq, manual + 0 + 1 + 1 + 2 + Base template + +=General= + +==Index and revision status== + +==Purpose== + +=Background= + +==Activities== + +==History== + +=Definitions and Abbreviations= + +==Definitions and terminology== + +==Abbreviations== + +=Management Requirements= + +==Organization== + +==Management System== + +==Document Control== + +==Review of Contracts== + +==Subcontracting== + +==Purchasing== + +==Service to the customer== + +==Complaints== + +==Control of non-conforming work== + +==Improvement== + +==Corrective actions== + +==Preventive actions== + +==Control of quality records== + +==Internal audits== + +==Management Reviews== + +=Technical Requirements= + +==General== + +==Personnel== + +==Accomodation== + +==Test methods and validation== + +==Equipment== + +==Measurement traceability== + +==Sampling== + +==Test items== + +==Quality control== + +==Reports / calibration certificates== + +=References= + +=Acknowledgements= + + + + Quality Manual + 2 + + + + + + + + +