How to Create Odoo Clickable Status Bar

Clickable Status Bar is a component in form view header which mostly used to show status of a record.

In order for it to become clickable, you have to define clickable properties in the XML declaration

<field name="state" widget="statusbar" options="{'clickable':1}"/>