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
'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'
<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>
'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'
<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"/>
'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'
<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>
<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>