forked from Techsystech/web
Fix according to review comments.
parent
390f078636
commit
08bb9053ef
|
@ -2,9 +2,9 @@
|
|||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||
:alt: License: AGPL-3
|
||||
|
||||
=====================================
|
||||
Web Widget - Email internal mail link
|
||||
=====================================
|
||||
=================================================
|
||||
Web Widget - Internal mail wizard for email links
|
||||
=================================================
|
||||
|
||||
This module was written to provide a new widget for Email fields to replace the
|
||||
standard behaviour of displaying a 'mailto:' link with JS to open the internal
|
||||
|
@ -54,4 +54,4 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.
|
||||
|
||||
To contribute to this module, please visit http://odoo-community.org.
|
||||
To contribute to this module, please visit https://odoo-community.org.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
{
|
||||
'name': 'Web Widget - Email internal mail link',
|
||||
'name': 'Web Widget - Internal mail wizard for email links',
|
||||
'summary': 'Send mail using internal composition wizard.',
|
||||
'version': '8.0.1.0.0',
|
||||
'category': 'Social Network',
|
||||
|
@ -14,7 +14,6 @@
|
|||
'installable': True,
|
||||
'auto_install': False,
|
||||
'depends': [
|
||||
'web',
|
||||
'mail',
|
||||
],
|
||||
'data': [
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<openerp>
|
||||
<data>
|
||||
|
||||
<template id="assets_backend" name="custom bar assets" inherit_id="web.assets_backend">
|
||||
<template id="assets_backend" inherit_id="web.assets_backend">
|
||||
<xpath expr="." position="inside">
|
||||
<link rel="stylesheet" href="/web_widget_mail_send_odoo/static/src/css/web_widget_mail_send_odoo.css"/>
|
||||
<script type="text/javascript" src="/web_widget_mail_send_odoo/static/src/js/web_widget_mail_send_odoo.js"/>
|
||||
|
|
|
@ -1 +1 @@
|
|||
.openerp .oe_form .oe_form_field_email_intern input,
|
||||
.openerp .oe_form .oe_form_field_email_internal input,
|
||||
|
|
|
@ -2,9 +2,8 @@
|
|||
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
*/
|
||||
|
||||
(function() {
|
||||
openerp.web_widget_mail_send_odoo = function(instance) {
|
||||
|
||||
var instance = openerp;
|
||||
var _t = instance.web._t,
|
||||
_lt = instance.web._lt;
|
||||
var QWeb = instance.web.qweb;
|
||||
|
@ -13,7 +12,7 @@ instance.web.form.FieldEmailIntern = instance.web.form.FieldChar.extend({
|
|||
template: 'FieldEmailIntern',
|
||||
initialize_content: function() {
|
||||
this._super();
|
||||
var $button = this.$el.find('a');
|
||||
var $button = this.$('a');
|
||||
$button.click(this.on_clicked);
|
||||
this.setupFocus($button);
|
||||
},
|
||||
|
@ -87,5 +86,4 @@ instance.web.form.FieldEmailIntern = instance.web.form.FieldChar.extend({
|
|||
});
|
||||
|
||||
instance.web.form.widgets.add('email', 'instance.web.form.FieldEmailIntern')
|
||||
|
||||
})()
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<templates>
|
||||
<t t-name="FieldEmailIntern" t-extend="FieldEmail">
|
||||
<t t-jquery="span:first">
|
||||
this.removeClass('oe_form_field_email').addClass('oe_form_field_email_intern');
|
||||
this.removeClass('oe_form_field_email').addClass('oe_form_field_email_internal');
|
||||
</t>
|
||||
</t>
|
||||
</templates>
|
||||
|
|
Loading…
Reference in New Issue