summaryrefslogtreecommitdiff
path: root/addons/account/data/payment_receipt_data.xml
diff options
context:
space:
mode:
authorAndrea Grazioso (agr-odoo) <agr@odoo.com>2020-06-26 09:46:33 +0000
committerAndrea Grazioso (agr-odoo) <agr@odoo.com>2020-07-06 09:09:59 +0000
commitce3c7d8714c330b8344ffb76245c364045cbf62f (patch)
treea585c4778af942ebf2eef319553dcb0a9df0475a /addons/account/data/payment_receipt_data.xml
parent42017b4ecba63190b47eca0a956807d93e0df9d3 (diff)
[FIX] account: change composition mode to allow multi send
Go to Payments view Select multiple confirmed payments, click on Actions>Send receipt by email Only for the first payment will be sent an email. This occur because in composition mode 'comment' (the default) mail composer sens the mail to a single record Adding a duplicate action to handle multi send Updating translation accordingly opw-2278971 closes odoo/odoo#54108 X-original-commit: 11fd7687047b2c17e9464e8415087d9a9fcf58a8 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/account/data/payment_receipt_data.xml')
-rw-r--r--addons/account/data/payment_receipt_data.xml20
1 files changed, 20 insertions, 0 deletions
diff --git a/addons/account/data/payment_receipt_data.xml b/addons/account/data/payment_receipt_data.xml
index 22ae398ad14..9b5fff2bc08 100644
--- a/addons/account/data/payment_receipt_data.xml
+++ b/addons/account/data/payment_receipt_data.xml
@@ -37,6 +37,7 @@
res_model="mail.compose.message"
binding_model="account.payment"
view_mode="form"
+ binding_views="form"
target="new"
id="account_send_payment_receipt_by_email_action"
context="{
@@ -50,5 +51,24 @@
'custom_layout': 'mail.mail_notification_light',
}"
/>
+
+ <act_window name="Send receipts by email"
+ res_model="mail.compose.message"
+ binding_model="account.payment"
+ view_mode="form"
+ binding_views="list"
+ target="new"
+ id="account_send_payment_receipt_by_email_action_multi"
+ context="{
+ 'default_model': 'account.payment',
+ 'mail_post_autofollow': True,
+ 'default_composition_mode': 'mass_mail',
+ 'default_use_template': True,
+ 'default_res_id': active_id,
+ 'default_template_id': ref('account.mail_template_data_payment_receipt'),
+ 'force_email': True,
+ 'custom_layout': 'mail.mail_notification_light',
+ }"
+ />
</data>
</odoo>