Consider a Path
Patient -> selected Patient -> Prescriptions -> New
On that path there's a prescription form, in that form there are two buttons "button 1" and "button 2", now i want to these two buttons when Path is like that
Patient -> selected Patient -> New
Now i am able to open new Prescription form on button click using code like that
def goto_prescription_form(self, cr, uid, ids, context=None):
return {
'type': 'ir.actions.act_window',
'name': 'Reffer Patient to Physician',
'res_model': 'oeh.medical.prescription',
'view_type': 'form',
'view_mode': 'form',
}