From 5537613309f8ba8bce7d6020cae9daf317d05499 Mon Sep 17 00:00:00 2001 From: KolushovAlexandr Date: Tue, 25 Sep 2018 12:14:12 +0500 Subject: [PATCH] :ambulance: error when choosing a message template --- mail_private/README.rst | 30 +++++++++++++++++----- mail_private/__openerp__.py | 2 +- mail_private/doc/changelog.rst | 5 ++++ mail_private/full_composer_wizard.xml | 2 -- mail_private/static/src/js/mail_private.js | 9 +++++++ mail_private/template.xml | 6 ++--- 6 files changed, 41 insertions(+), 13 deletions(-) diff --git a/mail_private/README.rst b/mail_private/README.rst index ac2133a..ea60ffe 100644 --- a/mail_private/README.rst +++ b/mail_private/README.rst @@ -1,3 +1,7 @@ +.. image:: https://img.shields.io/badge/license-LGPL--3-blue.png + :target: https://www.gnu.org/licenses/lgpl + :alt: License: LGPL-3 + ==================== Internal Messaging ==================== @@ -9,21 +13,35 @@ Credits Contributors ------------ -* Pavel Romanchenko +* Pavel Romanchenko Sponsors -------- * `IT-Projects LLC `__ +Maintainers +----------- +* `IT-Projects LLC `__ + + To get a guaranteed support + you are kindly requested to purchase the module + at `odoo apps store `__. + + Thank you for understanding! + + `IT-Projects Team `__ + Further information =================== -Demo: http://runbot.it-projects.info/demo/mail-addons/10.0 +Demo: http://runbot.it-projects.info/demo/mail-addons/11.0 + +HTML Description: https://apps.odoo.com/apps/modules/11.0/mail_private/ -HTML Description: https://apps.odoo.com/apps/modules/10.0/mail_private/ +Usage instructions: ``_ -Usage instructions: ``__ +Changelog: ``_ -Changelog: ``__ +Notifications on updates: `via Atom `_, `by Email `_ -Tested on Odoo 10.0 ffba5c688ff74a0630f9f70be1d7760a43a7deba +Tested on Odoo 11.0 3d09560ffc779e169ed9488e4e07928204dd234d diff --git a/mail_private/__openerp__.py b/mail_private/__openerp__.py index fdf16ea..80391dd 100644 --- a/mail_private/__openerp__.py +++ b/mail_private/__openerp__.py @@ -3,7 +3,7 @@ "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.1", + "version": "11.0.1.0.2", "application": False, "author": "IT-Projects LLC, Pavel Romanchenko", diff --git a/mail_private/doc/changelog.rst b/mail_private/doc/changelog.rst index f3b7c08..20569d5 100644 --- a/mail_private/doc/changelog.rst +++ b/mail_private/doc/changelog.rst @@ -1,3 +1,8 @@ +`1.0.2` +------- + +- **FIX:** Error when choosing a message template + `1.0.1` ------- diff --git a/mail_private/full_composer_wizard.xml b/mail_private/full_composer_wizard.xml index 7bb5471..9f57a20 100644 --- a/mail_private/full_composer_wizard.xml +++ b/mail_private/full_composer_wizard.xml @@ -1,6 +1,5 @@ - mail.compose.message.form.private @@ -23,5 +22,4 @@ - diff --git a/mail_private/static/src/js/mail_private.js b/mail_private/static/src/js/mail_private.js index 9ee48e1..4b3a7d0 100644 --- a/mail_private/static/src/js/mail_private.js +++ b/mail_private/static/src/js/mail_private.js @@ -1,3 +1,8 @@ +/* Copyright 2016-2018 Ivan Yelizariev + Copyright 2016 manavi + Copyright 2017-2018 Artyom Losev + Copyright 2018 Kolushov Alexandr + License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). */ odoo.define('mail_private', function (require) { 'use strict'; @@ -100,6 +105,10 @@ ChatterComposer.include({ init: function (parent, model, suggested_partners, options) { this._super(parent, model, suggested_partners, options); this.events['click .oe_composer_uncheck'] = 'on_uncheck_recipients'; + if (typeof options.is_private === 'undefined') { + // otherwise it causes an error in context creating function + options.is_private = false; + } }, preprocess_message: function () { diff --git a/mail_private/template.xml b/mail_private/template.xml index 534e53c..8f26202 100644 --- a/mail_private/template.xml +++ b/mail_private/template.xml @@ -1,6 +1,5 @@ - - + - - +