[REV] stages: removed bar_fold and bar_color fields.
authorThibault Delavallée <tde@openerp.com>
Mon, 21 Oct 2013 10:49:12 +0000 (12:49 +0200)
committerThibault Delavallée <tde@openerp.com>
Mon, 21 Oct 2013 10:49:12 +0000 (12:49 +0200)
After some experiments, having colors does not seem to give an
usable result on statusbar widget. Indeed we need to have the
current stage highlited, and maybe something to tell that some
stages have a special meaning and/or are the end of the pipe.
The closed field already gives that meaning.

Moreover the issue with the statusbar widget is that it indicates
state and action. Having both dimensions with colors / icons
is quite difficult to understand. We therefore stand on a simpler
version of the widget, only with stages and the current stage
highlighted.

bzr revid: tde@openerp.com-20131021104912-8ybhw0svdoghheh3

addons/crm/crm.py
addons/crm/crm_view.xml
addons/hr_recruitment/hr_recruitment.py
addons/hr_recruitment/hr_recruitment_view.xml
addons/project/project.py
addons/project/project_data.xml
addons/project/project_view.xml

index 9331fd2..7c2c269 100644 (file)
@@ -71,10 +71,6 @@ class crm_case_stage(osv.osv):
         '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.'),
-        'bar_fold': fields.boolean('Folded in Status Bar',
-                                   help='This stage is folded in the form view when'
-                                   'using the statusbar widget.'),
-        'bar_color': fields.integer('Status Bar Color'),
         'closed': fields.boolean('Closing Stage',
                                  help='Indicates whether this field is the end of'
                                  'the maangement process. This is for example a'
index 16debe1..87059b2 100644 (file)
                             <field name="sequence"/>
                             <field name="type"/>
                             <field name="probability"/>
-                            <field name="closed"/>
-                            <field name="case_default"/>
                         </group>
                         <group>
                             <field name="fold"/>
-                            <field name="bar_fold"/>
-                            <field name="bar_color"/>
+                            <field name="closed"/>
                             <field name="on_change"/>
                             <field name="case_default" groups="base.group_multi_salesteams"/>
                         </group>
index 0af3585..2e22a76 100644 (file)
@@ -56,10 +56,6 @@ class hr_recruitment_stage(osv.osv):
         '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.'),
-        'bar_fold': fields.boolean('Folded in Status Bar',
-                                   help='This stage is folded in the form view when'
-                                   'using the statusbar widget.'),
-        'bar_color': fields.integer('Status Bar Color'),
         'closed': fields.boolean('Closing Stage',
                                  help='Indicates whether this field is the end of'
                                  'the maangement process. This is for example a'
index 66ff4b9..912419a 100644 (file)
                 <field name="name"/>
                 <field name="department_id"/>
                 <field name="fold"/>
-                <field name="bar_fold"/>
             </tree>
         </field>
     </record>
                         <field name="name"/>
                         <field name="department_id"/>
                         <field name="sequence"/>
-                        <field name="closed"/>
                     </group>
                     <group>
                         <field name="fold"/>
-                        <field name="bar_fold"/>
-                        <field name="bar_color"/>
+                        <field name="closed"/>
                     </group>
                 </group>
                 <separator string="Requirements"/>
index 8a5774e..79f9c71 100644 (file)
@@ -44,10 +44,6 @@ class project_task_type(osv.osv):
         '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.'),
-        'bar_fold': fields.boolean('Folded in Status Bar',
-                                   help='This stage is folded in the form view when'
-                                   'using the statusbar widget.'),
-        'bar_color': fields.integer('Status Bar Color'),
         'closed': fields.boolean('Closing Stage',
                                  help='Indicates whether this field is the end of'
                                  'the maangement process. This is for example a'
index 78cccb6..1f49451 100644 (file)
@@ -70,7 +70,6 @@
             <field name="name">Cancelled</field>
             <field name="case_default" eval="True"/>
             <field name="fold" eval="True"/>
-            <field name="bar_fold" eval="True"/>
             <field name="closed" eval="True"/>
         </record>
 
index 4db5c3c..eef2701 100644 (file)
                         <group>
                             <field name="name"/>
                             <field name="sequence"/>
-                            <field name="closed"/>
                             <field name="case_default"/>
                         </group>
                         <group>
                             <field name="fold"/>
-                            <field name="bar_fold"/>
-                            <field name="bar_color"/>
+                            <field name="closed"/>
                         </group>
                     </group>
                     <field name="description" placeholder="Add a description..."/>
                     <field name="sequence" widget="handle"/>
                     <field name="name"/>
                     <field name="fold"/>
-                    <field name="bar_fold"/>
                 </tree>
             </field>
         </record>