From 54fcb73fc1aabb30a3eecfedd6e150e64dcf4963 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel <stw@openerp.com> Date: Wed, 5 Oct 2011 16:23:15 +0200 Subject: [PATCH] [FIX] base: Add the visible field in the ir.module.category, this field will be used by the new base.setup.installer bzr revid: stw@openerp.com-20111005142315-r9ypz1jeqbi8rfpo --- openerp/addons/base/module/module.py | 5 +++++ openerp/addons/base/module/module_data.xml | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/openerp/addons/base/module/module.py b/openerp/addons/base/module/module.py index 3af8d2907006..b7f9995e2c90 100644 --- a/openerp/addons/base/module/module.py +++ b/openerp/addons/base/module/module.py @@ -78,9 +78,14 @@ class module_category(osv.osv): 'module_ids' : fields.one2many('ir.module.module', 'category_id', 'Modules'), 'description' : fields.text("Description"), 'sequence' : fields.integer('Sequence'), + 'visible' : fields.boolean('Visible'), } _order = 'name' + _defaults = { + 'visible' : 1, + } + class module(osv.osv): _name = "ir.module.module" _description = "Module" diff --git a/openerp/addons/base/module/module_data.xml b/openerp/addons/base/module/module_data.xml index 02b4643b7671..3c88b2b1c7ee 100644 --- a/openerp/addons/base/module/module_data.xml +++ b/openerp/addons/base/module/module_data.xml @@ -1,10 +1,19 @@ <?xml version="1.0" encoding="utf-8"?> <openerp> <data> + <record model="ir.module.category" id="module_category_hidden"> + <field name="name">Hidden</field> + <field name="sequence">0</field> + <field name="visible" eval="0" /> + </record> + <record model="ir.module.category" id="module_category_link"> + <field name="parent_id" ref="module_category_hidden" /> <field name="name">Link</field> <field name="sequence">0</field> + <field name="visible" eval="0" /> </record> + <record model="ir.module.category" id="module_category_customer_relationship_management"> <field name="name">Customer Relationship Management</field> <field name="description">Helps you track and manage relations with customers such as leads, requests or issues. Can automatically send reminders, escalate requests or trigger business-specific actions based on standard events.</field> @@ -91,6 +100,7 @@ <record model="ir.module.category" id="module_category_localization"> <field name="name">Localization</field> + <field name="visible" eval="0" /> </record> <record model="ir.module.category" id="module_category_localization_account_charts"> @@ -103,6 +113,10 @@ <field name="description">Installs a preselected set of OpenERP applications which will help you manage your association more efficiently.</field> </record> + <record model="ir.module.category" id="module_category_vertical_applications"> + <field name="name">Vertical Applications</field> + </record> + <!-- <record id="ir_ui_view_sc_modules0" model="ir.ui.view_sc">--> <!-- <field name="name">Modules</field>--> <!-- <field name="resource">ir.ui.menu</field>--> -- GitLab