December 2018
Beginner to intermediate
404 pages
10h 14m
English
Next, we'll add to the header a status bar widget, showing the stage the document is in. Technically, it's a <field> element for the stage_id field using the statusbar widget:
<header>
<field name="state" invisible="True" />
<button name="do_clear_done" type="object"
string="Clear Done" states="open,cancel" class="oe_highlight" />
<field name="stage_id"
widget="statusbar"
clickable="True"
options="{'fold_field': 'fold'}" />
</header>
This adds a stage pipeline widget to the header. It uses the statusbar widget on a field that represents the point in the life cycle where the document is currently at. This is usually a state selection field or a stage many-to-one field. These two fields can be found across several ...
Read now
Unlock full access