forked from Techsystech/web
[IMP] web_send_message_popup: black, isort, prettier
parent
aa90eca507
commit
b594e30aa4
|
@ -5,4 +5,4 @@ printWidth: 88
|
||||||
proseWrap: always
|
proseWrap: always
|
||||||
semi: true
|
semi: true
|
||||||
trailingComma: "es5"
|
trailingComma: "es5"
|
||||||
xmlWhitespaceSensitivity: "ignore"
|
htmlWhitespaceSensitivity: "ignore"
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
../../../../web_send_message_popup
|
|
@ -0,0 +1,6 @@
|
||||||
|
import setuptools
|
||||||
|
|
||||||
|
setuptools.setup(
|
||||||
|
setup_requires=['setuptools-odoo'],
|
||||||
|
odoo_addon=True,
|
||||||
|
)
|
|
@ -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',
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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(
|
||||||
|
$.proxy(function() {
|
||||||
this._closeComposer(true);
|
this._closeComposer(true);
|
||||||
this._composer._onOpenFullComposer();
|
this._composer._onOpenFullComposer();
|
||||||
}, this));
|
}, this)
|
||||||
|
);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -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
|
||||||
|
id="assets_backend"
|
||||||
|
name="web_send_message_popup assets"
|
||||||
|
inherit_id="web.assets_backend"
|
||||||
|
>
|
||||||
<xpath expr="." position="inside">
|
<xpath expr="." position="inside">
|
||||||
<script type="text/javascript" src="/web_send_message_popup/static/src/js/chatter.js"/>
|
<script
|
||||||
|
type="text/javascript"
|
||||||
|
src="/web_send_message_popup/static/src/js/chatter.js"
|
||||||
|
/>
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|
Loading…
Reference in New Issue