I am new in Openerp 7, i installed purchase requisition module, in openerp 7 there is not approval method in purchase requisition i add custom button through view
<header>
<button name="tender_in_progress" states="draft" string="Send to Suppliers" type="object" class="oe_highlight"/>
<button name="tender_in_progress" states="draft" string="Approve" type="object" class="oe_highlight"/>
<button name="tender_reset" states="done,cancel" string="Reset to Draft" type="object"/>
<button name="tender_done" states="in_progress" string="Purchase Done" type="object" class="oe_highlight"/>
<button name="tender_cancel" states="draft,in_progress" string="Cancel Requisition" type="object"/>
<field name="state" widget="statusbar" statusbar_visible="draft,in_progress,done" statusbar_colors="{"in_progress":"blue"}"/>
</head
and change the flow or purchase-basic flow draft->approve->sent
button is displaying but i don't know how it will perform action that status of purchase requisition change from new to approved after click Approve button. please help me ....