diff --git a/addons/account/__manifest__.py b/addons/account/__manifest__.py index b3f27b9f7fd..1617407b2af 100644 --- a/addons/account/__manifest__.py +++ b/addons/account/__manifest__.py @@ -22,6 +22,8 @@ You could use this simplified accounting in case you work with an (external) acc 'data/data_account_type.xml', 'data/account_data.xml', 'data/digest_data.xml', + 'views/account_report.xml', + 'data/mail_template_data.xml', 'views/account_payment_view.xml', 'wizard/account_automatic_entry_wizard_views.xml', 'wizard/account_unreconcile_view.xml', @@ -45,9 +47,7 @@ You could use this simplified accounting in case you work with an (external) acc 'views/account_chart_template_views.xml', 'views/res_partner_bank_views.xml', 'views/report_statement.xml', - 'views/account_report.xml', 'views/terms_template.xml', - 'data/mail_template_data.xml', 'wizard/account_validate_move_view.xml', 'views/res_company_views.xml', 'views/product_view.xml', @@ -64,7 +64,6 @@ You could use this simplified accounting in case you work with an (external) acc 'views/account_journal_dashboard_view.xml', 'views/account_portal_templates.xml', 'views/report_payment_receipt_templates.xml', - 'data/payment_receipt_data.xml', 'views/account_onboarding_templates.xml', 'data/service_cron.xml', 'views/account_incoterms_view.xml', diff --git a/addons/account/data/mail_template_data.xml b/addons/account/data/mail_template_data.xml index 1aa788e3019..62a79d8acd5 100644 --- a/addons/account/data/mail_template_data.xml +++ b/addons/account/data/mail_template_data.xml @@ -55,5 +55,34 @@ ${object.partner_id.lang} + + + Payment Receipt: Send by email + + ${object.company_id.name} Payment Receipt (Ref ${object.name or 'n/a' }) + ${object.partner_id.id} + +
+

+ Dear ${object.partner_id.name}

+ Thank you for your payment. + Here is your payment receipt ${(object.name or '').replace('/','-')} amounting + to ${format_amount(object.amount, object.currency_id)} from ${object.company_id.name}. +

+ Do not hesitate to contact us if you have any questions. +

+ Best regards, + % if user.signature: +
+ ${user.signature | safe} + % endif +

+
+
+ + ${(object.name or '').replace('/','-')} + ${object.partner_id.lang} + +
diff --git a/addons/account/data/payment_receipt_data.xml b/addons/account/data/payment_receipt_data.xml deleted file mode 100644 index 74b6eb657fb..00000000000 --- a/addons/account/data/payment_receipt_data.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - Payment Receipt: Send by email - - ${object.company_id.name} Payment Receipt (Ref ${object.name or 'n/a' }) - ${object.partner_id.id} - -
-

- Dear ${object.partner_id.name}

- Thank you for your payment. - Here is your payment receipt ${(object.name or '').replace('/','-')} amounting - to ${format_amount(object.amount, object.currency_id)} from ${object.company_id.name}. -

- Do not hesitate to contact us if you have any questions. -

- Best regards, - % if user.signature: -
- ${user.signature | safe} - % endif -

-
-
- - ${(object.name or '').replace('/','-')} - ${object.partner_id.lang} - -
- - - Send receipt by email - mail.compose.message - form - new - - - form - - - - - Send receipts by email - mail.compose.message - form - new - - - list - -
-
diff --git a/addons/account/views/account_payment_view.xml b/addons/account/views/account_payment_view.xml index 78251dc1d08..d47cae7d4cc 100644 --- a/addons/account/views/account_payment_view.xml +++ b/addons/account/views/account_payment_view.xml @@ -365,6 +365,39 @@ records.action_post()
+ + + + Send receipt by email + mail.compose.message + form + new + + + form + + + + Send receipts by email + mail.compose.message + form + new + + + list +