[IMP] useability + kanban view on modules
authorFabien Pinckaers <fp@tinyerp.com>
Mon, 5 Dec 2011 16:48:55 +0000 (17:48 +0100)
committerFabien Pinckaers <fp@tinyerp.com>
Mon, 5 Dec 2011 16:48:55 +0000 (17:48 +0100)
bzr revid: fp@tinyerp.com-20111205164855-qd1hu2y599hq7xzs

openerp/addons/base/ir/ir.xml
openerp/addons/base/module/module.py
openerp/addons/base/module/module_view.xml
openerp/addons/base/res/res_bank.py

index d984cfe..53df767 100644 (file)
             <field name="view_type">form</field>
             <field name="help">The configuration wizards are used to help you configure a new instance of OpenERP. They are launched during the installation of new modules, but you can choose to restart some wizards manually from this menu.</field>
         </record>
-        <menuitem id="next_id_11" name="Configuration Wizards" parent="base.menu_config" sequence="2"/>
+        <menuitem id="next_id_11" name="Configuration Wizards" parent="base.menu_config" sequence="2"
+            groups="base.group_extended"/>
 
         <menuitem action="act_ir_actions_todo_form" id="menu_ir_actions_todo_form"
                 parent="next_id_11" sequence="20"/>
index 8e8181c..7a4ca00 100644 (file)
@@ -215,6 +215,7 @@ class module(osv.osv):
         'views_by_module': fields.function(_get_views, method=True, string='Views', type='text', multi="meta", store=True),
         'certificate' : fields.char('Quality Certificate', size=64, readonly=True),
         'web': fields.boolean('Has a web component', readonly=True),
+        'icon': fields.char('Icon URL', size=128),
         'complexity': fields.selection([('easy','Easy'), ('normal','Normal'), ('expert','Expert')],
             string='Complexity', readonly=True,
             help='Level of difficulty of module. Easy: intuitive and easy to use for everyone. Normal: easy to use for business experts. Expert: requires technical skills.'),
index 987914a..16cb12e 100644 (file)
             </field>
         </record>
 
+        <record model="ir.ui.view" id="module_view_kanban">
+            <field name="name">Modules Kanban</field>
+            <field name="model">ir.module.module</field>
+            <field name="type">kanban</field>
+            <field name="arch" type="xml">
+                <kanban>
+                    <field name="name"/>
+                    <field name="icon"/>
+                    <field name="complexity"/>
+                    <field name="category_id"/>
+                    <field name="state"/>
+                    <templates>
+                        <field name="name"/>
+                    </templates>
+                </kanban>
+            </field>
+        </record>
+
+
 
         <record id="action_module_open_categ" model="ir.actions.act_window">
             <field name="name">Modules</field>
             <field name="res_model">ir.module.module</field>
             <field name="view_type">form</field>
-            <field name="view_mode">tree,form</field>
+            <field name="view_mode">tree,form,kanban</field>
             <field name="domain">[('category_id','=',active_id)]</field>
         </record>
         <record id="ir_action_module_category" model="ir.values">
                     <field name="category_id"/>
                     <field name="complexity"/>
                     <field name="demo" readonly="1"/>
+                    <field name="icon"/>
                     <notebook colspan="4">
                         <page string="Module">
                             <group colspan="4" col="4">
             <field name="name">Modules</field>
             <field name="res_model">ir.module.module</field>
             <field name="view_type">form</field>
-            <field name="view_mode">tree,form</field>
+            <field name="view_mode">tree,form,kanban</field>
             <field name="domain"/>
             <field name="search_view_id" ref="view_module_filter"/>
             <field name="help">You can install new modules in order to activate new features, menu, reports or data in your OpenERP instance. To install some modules, click on the button "Install" from the form view and then click on "Start Upgrade".</field>
index ff2c5fd..2467936 100644 (file)
@@ -139,7 +139,7 @@ class res_partner_bank(osv.osv):
         'state': fields.selection(_bank_type_get, 'Bank Account Type', required=True,
             change_default=True),
         'sequence': fields.integer('Sequence'),
-        'footer': fields.boolean("Display on Reports")
+        'footer': fields.boolean("Display on Reports", help="Display this bank account on the footer of printed documents like invoices and sales orders.")
     }
     _defaults = {
         'owner_name': lambda obj, cursor, user, context: obj._default_value(