forked from Techsystech/web
[IMP] web_send_message_popup: black, isort, prettier
parent
aa90eca507
commit
b594e30aa4
|
@ -5,4 +5,4 @@ printWidth: 88
|
|||
proseWrap: always
|
||||
semi: true
|
||||
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
|
||||
# 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",],
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
this._super.apply(this, arguments);
|
||||
this.suggested_partners_def.done($.proxy(function () {
|
||||
this.suggested_partners_def.done(
|
||||
$.proxy(function() {
|
||||
this._closeComposer(true);
|
||||
this._composer._onOpenFullComposer();
|
||||
}, this));
|
||||
}, this)
|
||||
);
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
|
@ -1,8 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<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">
|
||||
<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>
|
||||
</template>
|
||||
</odoo>
|
||||
|
|
Loading…
Reference in New Issue