[IMP] crm: kanban customization
authorThibault Delavallée <tde@openerp.com>
Thu, 13 Nov 2014 10:28:33 +0000 (11:28 +0100)
committerThibault Delavallée <tde@openerp.com>
Thu, 13 Nov 2014 10:41:06 +0000 (11:41 +0100)
- stage model: add field holding the eventual specific legends for kanban
tates and star (priority) management
- crm.lead kanban: use kanban column using group_by_tooltip
- update data and demo data

addons/crm/crm.py
addons/crm/crm_lead_view.xml
addons/crm/crm_view.xml

index ebba6e1..045b68f 100644 (file)
@@ -128,6 +128,9 @@ class crm_stage(osv.Model):
                         help="Link between stages and sales teams. When set, this limitate the current stage to the selected sales teams."),
         'case_default': fields.boolean('Default to New Sales Team',
                         help="If you check this field, this stage will be proposed by default on each sales team. It will not assign this stage to existing teams."),
+        'legend_priority': fields.text(
+            'Priority Management Explanation', translate=True,
+            help='Explanation text to help users using the star and priority mechanism on stages or issues that are in this stage.'),
         'fold': fields.boolean('Folded in Kanban View',
                                help='This stage is folded in the kanban view when'
                                'there are no records in that stage to display.'),
index 7cb7762..e50e35e 100644 (file)
             <field name="model">crm.lead</field>
             <field name="arch" type="xml">
                 <kanban default_group_by="stage_id">
-                    <field name="stage_id"/>
+                    <field name="stage_id" options='{"group_by_tooltip": {"description": "Description", "legend_priority": "Use of stars"}}'/>
                     <field name="color"/>
                     <field name="priority"/>
                     <field name="planned_revenue" sum="Expected Revenues"/>
index 1fb8696..af8cb59 100644 (file)
 
         <menuitem action="crm_tracking_source_action" id="menu_crm_tracking_source" parent="base.menu_crm_config_lead" sequence="4" groups="base.group_no_one"/>
 
-        <!-- CRM Stage Tree View -->
+        <!-- CRM STAGE VIEWS -->
 
         <record model="ir.ui.view" id="crm_stage_tree">
             <field name="name">crm.stage.tree</field>
             </field>
         </record>
 
-        <!-- CRM Stage Form View -->
-
         <record model="ir.ui.view" id="crm_stage_form">
             <field name="name">crm.stage.form</field>
             <field name="model">crm.stage</field>
                             <field name="sequence"/>
                             <field name="type"/>
                             <field name="probability"/>
+                            <field name="case_default" groups="base.group_multi_salesteams"/>
                         </group>
                         <group>
                             <field name="fold"/>
                             <field name="on_change"/>
-                            <field name="case_default" groups="base.group_multi_salesteams"/>
+                            <field name="legend_priority"/>
                         </group>
-
                     </group>
                     <separator string="Requirements"/>
                     <field name="requirements" nolabel="1"/>