[IMP] web_send_message_popup: black, isort, prettier

pull/1978/head
Stephane Mangin 2021-02-04 12:24:09 +01:00 committed by hkpatel
parent 8634546a5b
commit 8b142d2700
3 changed files with 31 additions and 27 deletions

View File

@ -1,18 +1,13 @@
# Copyright 2014-2019 Camptocamp SA
# License AGPL-3.0 or later (http://gnu.org/licenses/agpl).
{
'name': 'Web Send Message as Popup',
'version': '12.0.1.0.0',
'author': "Camptocamp, Odoo Community Association (OCA)",
'maintainer': 'Camptocamp',
'license': 'AGPL-3',
'category': 'Hidden',
'depends': [
'web',
'mail',
],
'website': 'https://github.com/OCA/web',
'data': [
'templates/assets.xml',
],
"name": "Web Send Message as Popup",
"version": "12.0.1.0.0",
"author": "Camptocamp, Odoo Community Association (OCA)",
"maintainer": "Camptocamp",
"license": "AGPL-3",
"category": "Hidden",
"depends": ["web", "mail",],
"website": "https://github.com/OCA/web",
"data": ["templates/assets.xml",],
}

View File

@ -1,17 +1,19 @@
/* Copyright 2019 Camptocamp SA
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */
odoo.define('web_send_message_popup.Chatter', function (require) {
odoo.define("web_send_message_popup.Chatter", function(require) {
"use strict";
var Chatter = require('mail.Chatter');
var Chatter = require("mail.Chatter");
Chatter.include({
_onOpenComposerMessage: function () {
_onOpenComposerMessage: function() {
this._super.apply(this, arguments);
this.suggested_partners_def.done($.proxy(function () {
this._closeComposer(true);
this._composer._onOpenFullComposer();
}, this));
this.suggested_partners_def.done(
$.proxy(function() {
this._closeComposer(true);
this._composer._onOpenFullComposer();
}, this)
);
},
});
});

View File

@ -1,8 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="assets_backend" name="web_send_message_popup assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript" src="/web_send_message_popup/static/src/js/chatter.js"/>
</xpath>
</template>
<template
id="assets_backend"
name="web_send_message_popup assets"
inherit_id="web.assets_backend"
>
<xpath expr="." position="inside">
<script
type="text/javascript"
src="/web_send_message_popup/static/src/js/chatter.js"
/>
</xpath>
</template>
</odoo>