title: how to write workflow with the help of ORM in odoo. I want ButtonType:object not workflow. I am using odoo10
body: <p><a href="http://www.odoo.com/documentation/10.0/howtos/backend.html#workflows" rel="nofollow noreferrer">enter link description here</a></p>
  
  <p>how workflow write using ORM. Button type should be object not workflow.</p>