[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>
This commit is contained in:
Andrea Grazioso (agr-odoo)
2020-07-06 09:09:59 +00:00
parent 42017b4ecb
commit ce3c7d8714
2 changed files with 49 additions and 2 deletions
@@ -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>
+29 -2
View File
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server saas~13.3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-26 06:05+0000\n"
"PO-Revision-Date: 2020-05-26 06:05+0000\n"
"POT-Creation-Date: 2020-07-02 08:18+0000\n"
"PO-Revision-Date: 2020-07-02 08:18+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -159,6 +159,11 @@ msgstr ""
msgid "30 Days"
msgstr ""
#. module: account
#: model:account.payment.term,name:account.account_payment_term_advance
msgid "30% Advance End of Following Month"
msgstr ""
#. module: account
#: model:account.payment.term,name:account.account_payment_term_advance_60days
msgid "30% Now, Balance 60 Days"
@@ -2603,6 +2608,7 @@ msgstr ""
#: model:ir.model.fields.selection,name:account.selection__account_invoice_report__state__cancel
#: model:ir.model.fields.selection,name:account.selection__account_move__state__cancel
#: model:ir.model.fields.selection,name:account.selection__account_payment__state__cancelled
#: model_terms:ir.ui.view,arch_db:account.view_account_invoice_filter
msgid "Cancelled"
msgstr ""
@@ -7959,6 +7965,11 @@ msgstr ""
msgid "Payment terms: 30 Days"
msgstr ""
#. module: account
#: model:account.payment.term,note:account.account_payment_term_advance
msgid "Payment terms: 30% Advance End of Following Month"
msgstr ""
#. module: account
#: model:account.payment.term,note:account.account_payment_term_advance_60days
msgid "Payment terms: 30% Now, Balance 60 Days"
@@ -8107,6 +8118,12 @@ msgid ""
"proceeding."
msgstr ""
#. module: account
#: code:addons/account/models/account_cash_rounding.py:0
#, python-format
msgid "Please set a positive rounding value."
msgstr ""
#. module: account
#: model_terms:ir.ui.view,arch_db:account.report_invoice_document
msgid "Please use the following communication for your payment :"
@@ -8897,6 +8914,11 @@ msgstr ""
msgid "Reversal Date"
msgstr ""
#. module: account
#: model:ir.model.fields,field_description:account.field_account_move__reversal_move_id
msgid "Reversal Move"
msgstr ""
#. module: account
#: model:ir.model.fields,field_description:account.field_account_move_reversal__date
msgid "Reversal date"
@@ -9345,6 +9367,11 @@ msgstr ""
msgid "Send receipt by email"
msgstr ""
#. module: account
#: model:ir.actions.act_window,name:account.account_send_payment_receipt_by_email_action_multi
msgid "Send receipts by email"
msgstr ""
#. module: account
#: model_terms:ir.ui.view,arch_db:account.onboarding_sample_invoice_step
msgid "Send sample"