[IMP] account: Print payment receipts from Print menu.

PURPOSE
=======

Users don't find where to print the payment receipts because it's under the `Action` menu

SPECIFICATION
=============

Allow to print the payment receipt pdf directly from the print menu
This commit is contained in:
jpr-odoo
2017-07-10 14:07:56 +02:00
committed by Yannick Tivisse
parent 6cb6803975
commit 711455f9b9
2 changed files with 2 additions and 11 deletions
@@ -2,15 +2,6 @@
<odoo>
<data noupdate="1">
<record id="account_payment_action" model="ir.values">
<field name="model_id" ref="account.model_account_payment" />
<field name="name">Print Receipt</field>
<field name="key2">client_action_multi</field>
<field name="value" eval="'ir.actions.report,' +str(ref('action_report_payment_receipt'))" />
<field name="key">action</field>
<field name="model">account.payment</field>
</record>
<!--Email template -->
<record id="mail_template_data_payment_receipt" model="mail.template">
<field name="name">Payment Receipt - Send by Email</field>
+2 -2
View File
@@ -108,11 +108,11 @@
<report
id="action_report_payment_receipt"
model="account.payment"
string="Print Receipt"
string="Payment Receipt"
report_type="qweb-pdf"
name="account.report_payment_receipt"
file="account.report_payment_receipt"
menu="False"
menu="True"
/>
</data>