-
-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚡ mail_private New: internal users are flagged automatically. Added b…
…utton "Uncheck all"
- Loading branch information
Showing
8 changed files
with
136 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,54 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2016 x620 <https://github.com/x620> | ||
# Copyright 2016 Ivan Yelizariev <https://it-projects.info/team/yelizariev> | ||
# Copyright 2016 Ilmir Karamov <https://it-projects.info/team/ilmir-k> | ||
# Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/> | ||
# License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html). | ||
{ | ||
"name": """Internal Messaging""", | ||
"summary": """Send private messages to specified recipients, regardless of who are in followers list.""", | ||
"category": "Discuss", | ||
"images": ['images/mail_private_image.png'], | ||
"version": "1.0.0", | ||
# "live_test_url": "http://apps.it-projects.info/shop/product/DEMO-URL?version=8.0", | ||
"images": [], | ||
"version": "8.0.1.1.0", | ||
"application": False, | ||
|
||
"author": "IT-Projects LLC, Pavel Romanchenko", | ||
"website": "https://it-projects.info", | ||
"license": "GPL-3", | ||
"support": "[email protected]", | ||
"website": "https://it-projects.info/", | ||
"license": "LGPL-3", | ||
"price": 50.00, | ||
"currency": "EUR", | ||
|
||
"depends": [ | ||
"mail", | ||
"mail" | ||
], | ||
"external_dependencies": {"python": [], "bin": []}, | ||
"data": [ | ||
'template.xml', | ||
'view.xml', | ||
], | ||
"demo": [ | ||
], | ||
"qweb": [ | ||
'static/src/xml/mail_private.xml', | ||
], | ||
"demo": [], | ||
|
||
"post_load": None, | ||
"pre_init_hook": None, | ||
"post_init_hook": None, | ||
"uninstall_hook": None, | ||
|
||
"auto_install": False, | ||
"installable": True, | ||
|
||
# "demo_title": "{MODULE_NAME}", | ||
# "demo_addons": [ | ||
# ], | ||
# "demo_addons_hidden": [ | ||
# ], | ||
# "demo_url": "DEMO-URL", | ||
# "demo_summary": "{SHORT_DESCRIPTION_OF_THE_MODULE}", | ||
# "demo_images": [ | ||
# "images/MAIN_IMAGE", | ||
# ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2016 manawi <https://github.com/manawi> | ||
# Copyright 2016 Ivan Yelizariev <https://it-projects.info/team/yelizariev> | ||
# Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/> | ||
# License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html). | ||
|
||
from openerp.osv import osv, fields | ||
from openerp import api | ||
from openerp.http import request | ||
|
||
|
||
class MailComposeMessage(osv.TransientModel): | ||
_inherit = 'mail.compose.message' | ||
|
||
_columns = { | ||
'private': fields.boolean('Send Internal Message'), | ||
} | ||
private = fields.boolean('Send Internal Message') | ||
|
||
@api.model | ||
def get_internal_users_ids(self, vals): | ||
cr, uid, context = request.cr, request.uid, request.context | ||
ids = self.pool['res.users'].search(cr, uid, [('share', '=', False)], context=context) | ||
return ids |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.oe_mail .oe_msg_composer .oe_msg_content .oe_composer_uncheck { | ||
margin-top: 3px; | ||
margin-bottom: 15px; | ||
margin-left: 0px; | ||
} | ||
.oe_mail .oe_msg_composer .oe_msg_content .oe_recipients { | ||
margin-left: 0px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters