-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UPG] viin_brand_mail: upgrade version 17.0
- Loading branch information
Showing
42 changed files
with
205 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
from . import models | ||
from . import wizard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<odoo> | ||
<record id="mail.module_install_notification" model="mail.message"> | ||
<field name="subject">Welcome to Viindoo!</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<odoo> | ||
<record id="mail.mail_message_channel_whole_1" model="mail.message"> | ||
<field name="body"> | ||
<![CDATA[ | ||
<p> | ||
Great news!<br/> | ||
Our company has received the Deloitte Fast 50 award. We are the fastest | ||
growing company of the country, with a growth of 1549% over the past 5 | ||
years. You can get more information <a href="https://viindoo.com/blog">on our blog</a>. | ||
</p> | ||
]]> | ||
</field> | ||
</record> | ||
|
||
<record id="mail.mail_message_channel_1_2_1" model="mail.message"> | ||
<field name="body"><![CDATA[<p>When I have too much opportunities in the pipe, I start communicating with prospects more by email than phonecalls.</p><p>I send an email to create a sense of emergency, like <i>"can I call you this week about our quote?"</i> and I call only those that answer this email.</p><p>You can use the email template feature of Viindoo to automate email composition.</p>]]></field> | ||
</record> | ||
</odoo> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<odoo> | ||
|
||
<record id="mail.group_mail_notification_type_inbox" model="res.groups"> | ||
<field name="name">Receive notifications in Viindoo</field> | ||
</record> | ||
|
||
</odoo> |
11 changes: 5 additions & 6 deletions
11
viin_brand_mail/views/mail_data.xml → ...ail/data/mail_templates_email_layouts.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<template id="mail_notification_light" inherit_id="mail.mail_notification_light"> | ||
<xpath expr="//a[@href='https://www.odoo.com?utm_source=db&utm_medium=email']" position="replace" mode="inner"> | ||
Viindoo | ||
</xpath> | ||
<xpath expr="//a[@href='https://www.odoo.com?utm_source=db&utm_medium=email']" position="attributes"> | ||
<attribute name="style">color: #66C8D3;</attribute> | ||
<attribute name="href">https://viindoo.com?utm_source=db&utm_medium=email</attribute> | ||
<attribute name="href">https://viindoo.com?utm_source=db&utm_medium=email</attribute> | ||
<attribute name="t-att-style">'color: ' + (company.email_secondary_color or '#66C8D3') + ';'</attribute> | ||
</xpath> | ||
</template> | ||
<template id="mail_notification_layout" inherit_id="mail.mail_notification_layout"> | ||
<xpath expr="//a[@href='https://www.odoo.com?utm_source=db&utm_medium=email']" position="replace" mode="inner"> | ||
Viindoo | ||
Viindoo | ||
</xpath> | ||
<xpath expr="//a[@href='https://www.odoo.com?utm_source=db&utm_medium=email']" position="attributes"> | ||
<attribute name="style">color: #66C8D3;</attribute> | ||
<attribute name="href">https://viindoo.com?utm_source=db&utm_medium=email</attribute> | ||
<attribute name="href">https://viindoo.com?utm_source=db&utm_medium=email</attribute> | ||
<attribute name="t-att-style">'color: ' + (company.email_secondary_color or '#66C8D3') + ';'</attribute> | ||
</xpath> | ||
</template> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
from . import ir_http | ||
from . import mail_alias_domain | ||
from . import mail_alias | ||
from . import mail_gateway_allowed | ||
from . import mail_mail | ||
from . import mail_template | ||
from . import mail_thread | ||
from . import partner_devices | ||
from . import res_config_settings | ||
from . import res_users |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,8 @@ class Alias(models.Model): | |
_inherit = 'mail.alias' | ||
|
||
alias_name = fields.Char(help="The name of the email alias, e.g. 'jobs' if you want to catch emails for <[email protected]>") | ||
alias_model_id = fields.Many2one(help="The model (Viindoo Document Kind) to which this alias " | ||
"corresponds. Any incoming email that does not reply to an " | ||
"existing record will cause the creation of a new record " | ||
"of this model (e.g. a Project Task)", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from odoo import fields, models | ||
|
||
|
||
class AliasDomain(models.Model): | ||
_inherit = 'mail.alias.domain' | ||
|
||
name = fields.Char(help="Email domain e.g. 'example.com' in '[email protected]'") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from markupsafe import Markup | ||
from odoo import _, api, models | ||
|
||
|
||
class MailGatewayAllowed(models.Model): | ||
_inherit = 'mail.gateway.allowed' | ||
|
||
@api.model | ||
def get_empty_list_help(self, help_message): | ||
""" | ||
Completely overwrite | ||
""" | ||
get_param = self.env['ir.config_parameter'].sudo().get_param | ||
LOOP_MINUTES = int(get_param('mail.gateway.loop.minutes', 120)) | ||
LOOP_THRESHOLD = int(get_param('mail.gateway.loop.threshold', 20)) | ||
|
||
return Markup(_(''' | ||
<p class="o_view_nocontent_smiling_face"> | ||
Add addresses to the Allowed List | ||
</p><p> | ||
To protect you from spam and reply loops, Viindoo automatically blocks emails | ||
coming to your gateway past a threshold of <b>%(threshold)i</b> emails every <b>%(minutes)i</b> | ||
minutes. If there are some addresses from which you need to receive very frequent | ||
updates, you can however add them below and Viindoo will let them go through. | ||
</p>''')) % { | ||
'threshold': LOOP_THRESHOLD, | ||
'minutes': LOOP_MINUTES, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from odoo import fields, models | ||
|
||
|
||
class MailMail(models.Model): | ||
_inherit = 'mail.mail' | ||
|
||
auto_delete = fields.Boolean(help="This option permanently removes any track of email after it's been sent, " | ||
"including from the Technical menu in the Settings, in order to preserve storage space of your Viindoo database.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from odoo import fields, models | ||
|
||
|
||
class MailTemplate(models.Model): | ||
_inherit = "mail.template" | ||
|
||
auto_delete = fields.Boolean(help="This option permanently removes any track of email after it's been sent, " | ||
"including from the Technical menu in the Settings, in order to preserve storage space of your Viindoo database.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from odoo import models | ||
|
||
|
||
class MailThread(models.AbstractModel): | ||
_inherit = 'mail.thread' | ||
|
||
def _notify_by_web_push_prepare_payload(self, message, msg_vals=False): | ||
payload = super()._notify_by_web_push_prepare_payload(message, msg_vals) | ||
if 'options' in payload and 'icon' in payload['options'] and 'odoo-icon-192x192.png' in payload['options']['icon']: | ||
payload['options']['icon'] = '/viin_brand_mail/static/img/viindoo_app_icon.png' | ||
return payload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from odoo import fields, models | ||
|
||
|
||
class PartnerDevice(models.Model): | ||
_inherit = 'mail.partner.device' | ||
|
||
keys = fields.Char(help=("It's refer to browser keys used by the notification: \n" | ||
"- p256dh: It's the subscription public key generated by the browser. The browser will \n" | ||
" keep the private key secret and use it for decrypting the payload\n" | ||
"- auth: The auth value should be treated as a secret and not shared outside of Viindoo")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from odoo import fields, models | ||
|
||
|
||
class ResConfigSettings(models.TransientModel): | ||
_inherit = 'res.config.settings' | ||
|
||
alias_domain_id = fields.Many2one(help="If you have setup a catch-all email domain redirected to the Viindoo server," | ||
" enter the domain name here.") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions
9
viin_brand_mail/static/src/components/chat_window/chat_window.scss
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
viin_brand_mail/static/src/components/chat_window_header/chat_window_header.scss
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
viin_brand_mail/static/src/components/chatter_topbar/chatter_topbar.scss
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
viin_brand_mail/static/src/components/composer/composer.scss
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
viin_brand_mail/static/src/components/discuss_sidebar/discuss_sidebar.scss
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
...il/static/src/components/discuss_sidebar_category_item/discuss_sidebar_category_item.scss
This file was deleted.
Oops, something went wrong.
47 changes: 0 additions & 47 deletions
47
viin_brand_mail/static/src/components/message/message.scss
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
viin_brand_mail/static/src/components/notification_alert/notification_alert.xml
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
viin_brand_mail/static/src/components/partner_im_status_icon/partner_im_status_icon.scss
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.