hello everyone
I'm following a tutorial to create a button to open a form from another model using type="action" button but when i lick on the button it loads for second and nothing happens and there is no errors
this is the button :
<button class="oe_stat_button" name="%(open_patient_appointment)d" type="action"
icon="fa-usd">
<field string="Appointment" name="appointments_count" widget="statinfo"/>
</button>
the code of the action :
<record id="open_patient_appointment" model="ir.actions.act_window">
<field name="name">Appointments</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">hospital.appointment</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('patient_id','='active_id)]</field>
</record>