Skip to content

Commit

Permalink
12.0 mig mail recipient unchecked (#24)
Browse files Browse the repository at this point in the history
Squash merge pull request MDExOlB1bGxSZXF1ZXN0MzAzODU4NzM0
  • Loading branch information
ddufresne authored and always-be-closing[bot] committed Aug 2, 2019
1 parent 3753bc4 commit 8af9889
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mail_recipient_unchecked/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Mail Recipient Unchecked
========================
In vanilla Odoo, the mail recipient checkbox is checked by default.

.. image:: static/description/mail_recipient_checkbox.png

With this module installed, the checkbox is unchecked by default.

Contributors
------------
* Numigi (tm) and all its contributors (https://bit.ly/numigiens)
2 changes: 2 additions & 0 deletions mail_recipient_unchecked/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# © 2018 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
17 changes: 17 additions & 0 deletions mail_recipient_unchecked/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# © 2018 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
'name': 'Mail Recipient Unchecked',
'version': '1.0.0',
'author': 'Numigi',
'maintainer': 'Numigi',
'license': 'LGPL-3',
'category': 'Other',
'summary': 'Uncheck the recipients of chatter message by default.',
'depends': [
'mail',
],
'qweb': ['templates/chatter.xml'],
'installable': True,
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions mail_recipient_unchecked/templates/chatter.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates>
<t t-name="mail.chatter.Composer" t-extend="mail.chatter.Composer">
<t t-jquery="input[type='checkbox'][t-att-data-fullname='recipient.full_name']" t-operation="attributes">
<attribute name="t-att-checked">undefined</attribute>
</t>
</t>
</templates>

0 comments on commit 8af9889

Please sign in to comment.