Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][IMP] mail_send_confirmation: wizard #1544

Open
wants to merge 1 commit into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions mail_send_confirmation/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ Authors
Contributors
------------

- `Quartile <https://www.quartile.co>`__:
- `Quartile <https://www.quartile.co>`__:

- Aung Ko Ko Lin
- Aung Ko Ko Lin

- `360ERP <https://www.360erp.com>`__:
- `360ERP <https://www.360erp.com>`__:

- Andrea Stirpe
- Andrea Stirpe

Maintainers
-----------
Expand Down
4 changes: 4 additions & 0 deletions mail_send_confirmation/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright 2023 Quartile Limited
# Copyright 2025 CorporateHub
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Mail Send Confirmation",
Expand All @@ -13,5 +14,8 @@
"mail_send_confirmation/static/src/models/composer_view.esm.js",
],
},
"data": [
"views/mail_compose_message.xml",
],
"installable": True,
}
2 changes: 2 additions & 0 deletions mail_send_confirmation/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
- Aung Ko Ko Lin
- [360ERP](https://www.360erp.com):
- Andrea Stirpe
- [CorporateHub](https://corporatehub.eu/)
- Alexey Pelykh \<<[email protected]>\>
11 changes: 2 additions & 9 deletions mail_send_confirmation/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
This module asks for confirmation when 'Send' button in the message
composer of the chatter is pressed, to reduce the chances of
accidentally sending an internal message to the external followers.

## Limitation

As of now, this module does not change the behavior of the full composer
(i.e. no confirmation will be requested), which shows the recipients and
therefore the extra confirmation step may not be as necessary as in the
simple composer.
composer is pressed, to reduce the chances of accidentally sending an
internal message to the external followers.
11 changes: 7 additions & 4 deletions mail_send_confirmation/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@

/*
:Author: David Goodger ([email protected])
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.

See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
Expand Down Expand Up @@ -274,7 +275,7 @@
margin-left: 2em ;
margin-right: 2em }

pre.code .ln { color: grey; } /* line numbers */
pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
Expand All @@ -300,7 +301,7 @@
span.pre {
white-space: pre }

span.problematic {
span.problematic, pre.problematic {
color: red }

span.section-subtitle {
Expand Down Expand Up @@ -419,7 +420,9 @@ <h1>Contributors</h1>
<div class="section" id="maintainers">
<h1>Maintainers</h1>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
Expand Down
17 changes: 17 additions & 0 deletions mail_send_confirmation/views/mail_compose_message.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<record id="mail__email_compose_message_wizard_form" model="ir.ui.view">
<field name="name">mail.compose.message.form</field>
<field name="model">mail.compose.message</field>
<field name="inherit_id" ref="mail.email_compose_message_wizard_form" />
<field name="arch" type="xml">
<xpath expr="//button[@name='action_send_mail']" position="attributes">
<attribute
name="confirm"
>This message will be sent to external partners as well. Are you sure you would like to send this message?</attribute>
</xpath>
</field>
</record>

</odoo>
Loading