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

View File

@ -1,17 +1,19 @@
/* Copyright 2019 Camptocamp SA /* Copyright 2019 Camptocamp SA
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */ * 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"; "use strict";
var Chatter = require('mail.Chatter'); var Chatter = require("mail.Chatter");
Chatter.include({ Chatter.include({
_onOpenComposerMessage: function () { _onOpenComposerMessage: function() {
this._super.apply(this, arguments); this._super.apply(this, arguments);
this.suggested_partners_def.done($.proxy(function () { this.suggested_partners_def.done(
this._closeComposer(true); $.proxy(function() {
this._composer._onOpenFullComposer(); this._closeComposer(true);
}, this)); 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> <odoo>
<template id="assets_backend" name="web_send_message_popup assets" inherit_id="web.assets_backend"> <template
<xpath expr="." position="inside"> id="assets_backend"
<script type="text/javascript" src="/web_send_message_popup/static/src/js/chatter.js"/> name="web_send_message_popup assets"
</xpath> inherit_id="web.assets_backend"
</template> >
<xpath expr="." position="inside">
<script
type="text/javascript"
src="/web_send_message_popup/static/src/js/chatter.js"
/>
</xpath>
</template>
</odoo> </odoo>