I created my own menu and submenus, and form. And i created button in form for print custom qweb report. But i could not make button function. I have already created report template, how can i make button function to print report? Once i have done print custom report like this;
<openerp>
<data>
<report
id="payment_report_custom"
string="Payment Report"
model="account.payment"
report_type="qweb-pdf"
file="custom_reports.payment_rpt"
name="custom_reports.payment_rpt"
paperformat="custom_reports.izmer_paperformat"
/>
</data>
</openerp>
but this creates odoos print button, i did'not create any custom button. Now, this time i want my own print button.
Thank you.