Compare commits
merge into: OCA:12.0
OCA:10.0
OCA:11.0
OCA:12.0
OCA:12.3
OCA:8.0
OCA:9.0
OCA:mail_tracking_fix
pull from: OCA:10.0
OCA:10.0
OCA:11.0
OCA:12.0
OCA:12.3
OCA:8.0
OCA:9.0
OCA:mail_tracking_fix
No commits in common. '12.0' and '10.0' have entirely different histories.
1446 changed files with 93946 additions and 30064 deletions
-
10.travis.yml
-
52README.md
-
79base_search_mail_content/README.rst
-
6base_search_mail_content/__init__.py
-
14base_search_mail_content/__manifest__.py
-
51base_search_mail_content/i18n/am.po
-
51base_search_mail_content/i18n/ar.po
-
53base_search_mail_content/i18n/base_search_mail_content.pot
-
51base_search_mail_content/i18n/bg.po
-
51base_search_mail_content/i18n/bs.po
-
53base_search_mail_content/i18n/ca.po
-
51base_search_mail_content/i18n/cs.po
-
51base_search_mail_content/i18n/da.po
-
55base_search_mail_content/i18n/de.po
-
51base_search_mail_content/i18n/el_GR.po
-
51base_search_mail_content/i18n/en_GB.po
-
71base_search_mail_content/i18n/es.po
-
51base_search_mail_content/i18n/es_CR.po
-
51base_search_mail_content/i18n/es_EC.po
-
51base_search_mail_content/i18n/es_MX.po
-
51base_search_mail_content/i18n/es_VE.po
-
51base_search_mail_content/i18n/et.po
-
51base_search_mail_content/i18n/eu.po
-
51base_search_mail_content/i18n/fi.po
-
64base_search_mail_content/i18n/fr.po
-
51base_search_mail_content/i18n/fr_CA.po
-
51base_search_mail_content/i18n/fr_CH.po
-
51base_search_mail_content/i18n/gl.po
-
51base_search_mail_content/i18n/hr.po
-
51base_search_mail_content/i18n/hr_HR.po
-
51base_search_mail_content/i18n/hu.po
-
53base_search_mail_content/i18n/it.po
-
51base_search_mail_content/i18n/ja.po
-
51base_search_mail_content/i18n/lt.po
-
51base_search_mail_content/i18n/lv.po
-
51base_search_mail_content/i18n/mk.po
-
51base_search_mail_content/i18n/mn.po
-
51base_search_mail_content/i18n/nb.po
-
51base_search_mail_content/i18n/nb_NO.po
-
51base_search_mail_content/i18n/nl.po
-
51base_search_mail_content/i18n/nl_BE.po
-
51base_search_mail_content/i18n/pl.po
-
51base_search_mail_content/i18n/pt.po
-
53base_search_mail_content/i18n/pt_BR.po
-
53base_search_mail_content/i18n/pt_PT.po
-
51base_search_mail_content/i18n/ro.po
-
51base_search_mail_content/i18n/ru.po
-
51base_search_mail_content/i18n/sk.po
-
53base_search_mail_content/i18n/sl.po
-
51base_search_mail_content/i18n/sr@latin.po
-
51base_search_mail_content/i18n/sv.po
-
51base_search_mail_content/i18n/th.po
-
53base_search_mail_content/i18n/tr.po
-
51base_search_mail_content/i18n/tr_TR.po
-
51base_search_mail_content/i18n/vi.po
-
51base_search_mail_content/i18n/zh_CN.po
-
51base_search_mail_content/i18n/zh_TW.po
-
7base_search_mail_content/models/__init__.py
-
12base_search_mail_content/models/mail_thread.py
-
17base_search_mail_content/models/trgm_index.py
-
9base_search_mail_content/readme/CONTRIBUTORS.rst
-
19base_search_mail_content/readme/DESCRIPTION.rst
-
6base_search_mail_content/readme/INSTALL.rst
-
2base_search_mail_content/readme/USAGE.rst
-
457base_search_mail_content/static/description/index.html
-
1base_search_mail_content/tests/__init__.py
-
1base_search_mail_content/tests/test_base_search_mail_content.py
-
27base_search_mail_content/views/trgm_index_view.xml
-
52bus_presence_override/README.rst
-
6bus_presence_override/__init__.py
-
24bus_presence_override/__manifest__.py
-
5bus_presence_override/controllers/__init__.py
-
21bus_presence_override/controllers/main.py
-
77bus_presence_override/i18n/bus_presence_override.pot
-
7bus_presence_override/models/__init__.py
-
88bus_presence_override/models/bus_presence.py
-
21bus_presence_override/models/res_partner.py
-
21bus_presence_override/models/res_users.py
-
0bus_presence_override/static/description/icon.png
-
106bus_presence_override/static/src/js/bus_presence_systray.js
-
21bus_presence_override/static/src/less/bus_presence_systray.less
-
38bus_presence_override/static/src/xml/bus_presence_systray.xml
-
7bus_presence_override/status_constants.py
-
7bus_presence_override/tests/__init__.py
-
28bus_presence_override/tests/bus_setup.py
-
120bus_presence_override/tests/test_bus_presence.py
-
27bus_presence_override/tests/test_res_partner.py
-
28bus_presence_override/tests/test_res_users.py
-
16bus_presence_override/views/assets.xml
-
83email_template_qweb/README.rst
-
3email_template_qweb/__init__.py
-
9email_template_qweb/__manifest__.py
-
16email_template_qweb/i18n/de.po
-
18email_template_qweb/i18n/email_template_qweb.pot
-
69email_template_qweb/i18n/en.po
-
16email_template_qweb/i18n/es.po
-
16email_template_qweb/i18n/es_MX.po
-
16email_template_qweb/i18n/fr.po
-
16email_template_qweb/i18n/hr.po
-
16email_template_qweb/i18n/it.po
@ -1,14 +1,58 @@ |
|||
[![Runbot Status](https://runbot.odoo-community.org/runbot/badge/flat/205/12.0.svg)](https://runbot.odoo-community.org/runbot/repo/github-com-oca-social-205) |
|||
[![Build Status](https://travis-ci.org/OCA/social.svg?branch=12.0)](https://travis-ci.org/OCA/social) |
|||
[![Coverage Status](https://coveralls.io/repos/OCA/social/badge.svg?branch=12.0)](https://coveralls.io/r/OCA/social?branch=12.0) |
|||
[![Runbot Status](https://runbot.odoo-community.org/runbot/badge/flat/205/10.0.svg)](https://runbot.odoo-community.org/runbot/repo/github-com-oca-social-205) |
|||
[![Build Status](https://travis-ci.org/OCA/social.svg?branch=10.0)](https://travis-ci.org/OCA/social) |
|||
[![Coverage Status](https://coveralls.io/repos/OCA/social/badge.svg?branch=10.0)](https://coveralls.io/r/OCA/social?branch=10.0) |
|||
|
|||
Social addons for Odoo |
|||
====================== |
|||
|
|||
Addons concerning Odoo's social ERP features and messaging in general |
|||
|
|||
[//]: # (addons) |
|||
|
|||
Available addons |
|||
---------------- |
|||
addon | version | summary |
|||
--- | --- | --- |
|||
[base_search_mail_content](base_search_mail_content/) | 10.0.1.0.0 | Base Search Mail Content |
|||
[bus_presence_override](bus_presence_override/) | 10.0.1.0.0 | Adds user-defined im status (online, away, offline). |
|||
[email_template_qweb](email_template_qweb/) | 10.0.1.0.0 | Use the QWeb templating mechanism for emails |
|||
[mail_as_letter](mail_as_letter/) | 10.0.1.0.0 | This module allows to download a mail message as a pdf letter. |
|||
[mail_attach_existing_attachment](mail_attach_existing_attachment/) | 10.0.1.0.0 | Adding attachment on the object by sending this one |
|||
[mail_check_mailbox_size](mail_check_mailbox_size/) | 10.0.1.0.0 | Send an email summarizing the current space used by a mailbox |
|||
[mail_debrand](mail_debrand/) | 10.0.1.0.0 | Remove Odoo branding in sent emails |
|||
[mail_digest](mail_digest/) | 10.0.1.0.2 | Basic digest mail handling. |
|||
[mail_footer_notified_partner](mail_footer_notified_partner/) | 10.0.1.0.1 | This module adds the list of notified partners in the footer of notification e-mails sent by Odoo. |
|||
[mail_force_queue](mail_force_queue/) | 10.0.0.2.0 | Force outgoing emails to be queued |
|||
[mail_forward](mail_forward/) | 10.0.1.0.0 | Add option to forward messages |
|||
[mail_full_expand](mail_full_expand/) | 10.0.1.0.0 | Expand mail in a big window |
|||
[mail_improved_tracking_value](mail_improved_tracking_value/) | 10.0.1.0.0 | Improves tracking changed values for certain type of fields.Adds a user-friendly view to consult them. |
|||
[mail_inline_css](mail_inline_css/) | 10.0.1.0.0 | Convert style tags in inline style in your mails |
|||
[mail_notify_bounce](mail_notify_bounce/) | 10.0.1.0.2 | Notify bounce emails to preconfigured addresses |
|||
[mail_optional_autofollow](mail_optional_autofollow/) | 10.0.1.0.0 | Choose if you want to automatically add new recipients as followers on mail.compose.message |
|||
[mail_optional_follower_notification](mail_optional_follower_notification/) | 10.0.1.0.1 | Choose if you want to automatically notify followers on mail.compose.message |
|||
[mail_restrict_follower_selection](mail_restrict_follower_selection/) | 10.0.1.0.0 | Define a domain from which followers can be selected |
|||
[mail_sendgrid](mail_sendgrid/) | 10.0.1.0.2 | SendGrid |
|||
[mail_sendgrid_mass_mailing](mail_sendgrid_mass_mailing/) | 10.0.1.0.1 | Mass Mailing with SendGrid |
|||
[mail_tracking](mail_tracking/) | 10.0.1.1.1 | Email tracking system for all mails sent |
|||
[mail_tracking_mailgun](mail_tracking_mailgun/) | 10.0.1.2.1 | Mail tracking and Mailgun webhooks integration |
|||
[mail_tracking_mass_mailing](mail_tracking_mass_mailing/) | 10.0.1.0.1 | Improve mass mailing email tracking |
|||
[mass_mailing_custom_unsubscribe](mass_mailing_custom_unsubscribe/) | 10.0.2.0.0 | Know and track (un)subscription reasons, GDPR compliant |
|||
[mass_mailing_event](mass_mailing_event/) | 10.0.1.0.1 | Link mass mailing with event for excluding recipients |
|||
[mass_mailing_list_dynamic](mass_mailing_list_dynamic/) | 10.0.1.2.0 | Mass mailing lists that get autopopulated |
|||
[mass_mailing_partner](mass_mailing_partner/) | 10.0.1.0.3 | Link partners with mass-mailing |
|||
[mass_mailing_resend](mass_mailing_resend/) | 10.0.1.0.0 | Resend mass mailings |
|||
[mass_mailing_unique](mass_mailing_unique/) | 10.0.1.0.0 | Avoids duplicate mailing lists and contacts |
|||
[website_mass_mailing_name](website_mass_mailing_name/) | 10.0.1.0.1 | Ask for name when subscribing, and create and/or link partner |
|||
|
|||
|
|||
Unported addons |
|||
--------------- |
|||
addon | version | summary |
|||
--- | --- | --- |
|||
[mail_compose_select_lang](mail_compose_select_lang/) | 8.0.1.0.0 (unported) | Select language in mail compose window |
|||
|
|||
[//]: # (end addons) |
|||
|
|||
Translation Status |
|||
------------------ |
|||
[![Transifex Status](https://www.transifex.com/projects/p/OCA-social-12-0/chart/image_png)](https://www.transifex.com/projects/p/OCA-social-12-0) |
|||
[![Transifex Status](https://www.transifex.com/projects/p/OCA-social-10-0/chart/image_png)](https://www.transifex.com/projects/p/OCA-social-10-0) |
@ -1,7 +1,7 @@ |
|||
# Copyright 2016 Eficent Business and IT Consulting Services S.L. |
|||
# -*- coding: utf-8 -*- |
|||
# © 2016 Eficent Business and IT Consulting Services S.L. |
|||
# (http://www.eficent.com) |
|||
# Copyright 2016 Serpent Consulting Services Pvt. Ltd. |
|||
# (<http://www.serpentcs.com>) |
|||
# © 2016 Serpent Consulting Services Pvt. Ltd. (<http://www.serpentcs.com>) |
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from . import models |
@ -1,21 +1,19 @@ |
|||
# Copyright 2016 Eficent Business and IT Consulting Services S.L. |
|||
# -*- coding: utf-8 -*- |
|||
# © 2016 Eficent Business and IT Consulting Services S.L. |
|||
# (http://www.eficent.com) |
|||
# Copyright 2016 Serpent Consulting Services Pvt. Ltd. |
|||
# (<http://www.serpentcs.com>) |
|||
# © 2016 Serpent Consulting Services Pvt. Ltd. (<http://www.serpentcs.com>) |
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). |
|||
|
|||
{ |
|||
"name": "Base Search Mail Content", |
|||
"version": "12.0.1.0.0", |
|||
"version": "10.0.1.0.0", |
|||
"author": "Eficent," |
|||
"SerpentCS," |
|||
"Tecnativa," |
|||
"Odoo Community Association (OCA)", |
|||
"website": "https://github.com/OCA/social", |
|||
"category": "Social", |
|||
"data": [ |
|||
"data/trgm_index_data.xml", |
|||
], |
|||
"data": ["data/trgm_index_data.xml", |
|||
"views/trgm_index_view.xml"], |
|||
"depends": ["mail", "base_search_fuzzy"], |
|||
"license": "AGPL-3", |
|||
'installable': True, |
|||
|
@ -1,8 +1,7 @@ |
|||
# Copyright 2016-17 Eficent Business and IT Consulting Services S.L. |
|||
# -*- coding: utf-8 -*- |
|||
# © 2016-17 Eficent Business and IT Consulting Services S.L. |
|||
# (http://www.eficent.com) |
|||
# Copyright 2016 Serpent Consulting Services Pvt. Ltd. |
|||
# (<http://www.serpentcs.com>) |
|||
# © 2016 Serpent Consulting Services Pvt. Ltd. (<http://www.serpentcs.com>) |
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from . import mail_thread |
|||
from . import trgm_index |
@ -1,17 +0,0 @@ |
|||
# Copyright 2016 Eficent Business and IT Consulting Services S.L. |
|||
# Copyright 2016 Serpent Consulting Services Pvt. Ltd. |
|||
# Copyright 2017 LasLabs Inc. |
|||
# Copyright 2018 Tecnativa - Vicent Cubells |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
|
|||
from odoo import fields, models |
|||
|
|||
|
|||
class TrgmIndex(models.Model): |
|||
_inherit = 'trgm.index' |
|||
|
|||
# We take advantage of field inheritance to redefine help instead of do |
|||
# inheritance in views that throws an error |
|||
field_id = fields.Many2one( |
|||
help="You can either select a field of type 'text', 'char' or 'html'." |
|||
) |
@ -1,9 +0,0 @@ |
|||
* Jordi Ballester Alomar <jordi.ballester@eficent.com> |
|||
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com> |
|||
* Lois Rilo Antelo <lois.rilo@eficent.com> |
|||
* Aaron Henriquez <ahenriquez@eficent.com> |
|||
|
|||
* `Tecnativa <https://www.tecnativa.com>`_: |
|||
|
|||
* Vicent Cubells |
|||
* Ernesto Tejeda |
@ -1,19 +0,0 @@ |
|||
This module adds the capability to find on any object (e.g. project issues or |
|||
helpdesk ticket) based on the conversation threads associated to them. |
|||
|
|||
This will be useful in models that make intense use of messages, |
|||
like project issues or helpdesk tickets. |
|||
|
|||
A project issue or helpdesk ticket can contain tens of mails or notes |
|||
associated, based on the feedback that the person responsible for the ticket |
|||
maintains, including conversations with the person that raised the issue. |
|||
|
|||
A user may often want to find issues or tickets, based on the past |
|||
conversations that were recorded, as much as he or she needs to search |
|||
in their mail for past conversations. |
|||
|
|||
This module will add dynamically a field 'message_content' to the search view |
|||
of any model that inherits from the mail.thread. |
|||
|
|||
The current search capabilities include searching into the subject, body, |
|||
email from, reply to and record name. |
@ -1,6 +0,0 @@ |
|||
This module depends on the module 'base_search_fuzzy' to ensure that |
|||
searches on emails are based on indexes. Please read carefully the |
|||
`install instructions <https://github.com/OCA/server-tools/blob/11.0/base_search_fuzzy>`_. |
|||
|
|||
This module installs by default the indexes that are required to |
|||
perform the searches on mail messages. |
@ -1,2 +0,0 @@ |
|||
Go to any model that contains a chatter (e.g. Contacts, ...). Search |
|||
for content in field 'Message Content'. |
@ -1,457 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8" ?> |
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|||
<head> |
|||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|||
<meta name="generator" content="Docutils 0.14: http://docutils.sourceforge.net/" /> |
|||
<title>Base Search Mail Content</title> |
|||
<style type="text/css"> |
|||
|
|||
/* |
|||
:Author: David Goodger (goodger@python.org) |
|||
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $ |
|||
:Copyright: This stylesheet has been placed in the public domain. |
|||
|
|||
Default cascading style sheet for the HTML output of Docutils. |
|||
|
|||
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to |
|||
customize this style sheet. |
|||
*/ |
|||
|
|||
/* used to remove borders from tables and images */ |
|||
.borderless, table.borderless td, table.borderless th { |
|||
border: 0 } |
|||
|
|||
table.borderless td, table.borderless th { |
|||
/* Override padding for "table.docutils td" with "! important". |
|||
The right padding separates the table cells. */ |
|||
padding: 0 0.5em 0 0 ! important } |
|||
|
|||
.first { |
|||
/* Override more specific margin styles with "! important". */ |
|||
margin-top: 0 ! important } |
|||
|
|||
.last, .with-subtitle { |
|||
margin-bottom: 0 ! important } |
|||
|
|||
.hidden { |
|||
display: none } |
|||
|
|||
.subscript { |
|||
vertical-align: sub; |
|||
font-size: smaller } |
|||
|
|||
.superscript { |
|||
vertical-align: super; |
|||
font-size: smaller } |
|||
|
|||
a.toc-backref { |
|||
text-decoration: none ; |
|||
color: black } |
|||
|
|||
blockquote.epigraph { |
|||
margin: 2em 5em ; } |
|||
|
|||
dl.docutils dd { |
|||
margin-bottom: 0.5em } |
|||
|
|||
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { |
|||
overflow: hidden; |
|||
} |
|||
|
|||
/* Uncomment (and remove this text!) to get bold-faced definition list terms |
|||
dl.docutils dt { |
|||
font-weight: bold } |
|||
*/ |
|||
|
|||
div.abstract { |
|||
margin: 2em 5em } |
|||
|
|||
div.abstract p.topic-title { |
|||
font-weight: bold ; |
|||
text-align: center } |
|||
|
|||
div.admonition, div.attention, div.caution, div.danger, div.error, |
|||
div.hint, div.important, div.note, div.tip, div.warning { |
|||
margin: 2em ; |
|||
border: medium outset ; |
|||
padding: 1em } |
|||
|
|||
div.admonition p.admonition-title, div.hint p.admonition-title, |
|||
div.important p.admonition-title, div.note p.admonition-title, |
|||
div.tip p.admonition-title { |
|||
font-weight: bold ; |
|||
font-family: sans-serif } |
|||
|
|||
div.attention p.admonition-title, div.caution p.admonition-title, |
|||
div.danger p.admonition-title, div.error p.admonition-title, |
|||
div.warning p.admonition-title, .code .error { |
|||
color: red ; |
|||
font-weight: bold ; |
|||
font-family: sans-serif } |
|||
|
|||
/* Uncomment (and remove this text!) to get reduced vertical space in |
|||
compound paragraphs. |
|||
div.compound .compound-first, div.compound .compound-middle { |
|||
margin-bottom: 0.5em } |
|||
|
|||
div.compound .compound-last, div.compound .compound-middle { |
|||
margin-top: 0.5em } |
|||
*/ |
|||
|
|||
div.dedication { |
|||
margin: 2em 5em ; |
|||
text-align: center ; |
|||
font-style: italic } |
|||
|
|||
div.dedication p.topic-title { |
|||
font-weight: bold ; |
|||
font-style: normal } |
|||
|
|||
div.figure { |
|||
margin-left: 2em ; |
|||
margin-right: 2em } |
|||
|
|||
div.footer, div.header { |
|||
clear: both; |
|||
font-size: smaller } |
|||
|
|||
div.line-block { |
|||
display: block ; |
|||
margin-top: 1em ; |
|||
margin-bottom: 1em } |
|||
|
|||
div.line-block div.line-block { |
|||
margin-top: 0 ; |
|||
margin-bottom: 0 ; |
|||
margin-left: 1.5em } |
|||
|
|||
div.sidebar { |
|||
margin: 0 0 0.5em 1em ; |
|||
border: medium outset ; |
|||
padding: 1em ; |
|||
background-color: #ffffee ; |
|||
width: 40% ; |
|||
float: right ; |
|||
clear: right } |
|||
|
|||
div.sidebar p.rubric { |
|||
font-family: sans-serif ; |
|||
font-size: medium } |
|||
|
|||
div.system-messages { |
|||
margin: 5em } |
|||
|
|||
div.system-messages h1 { |
|||
color: red } |
|||
|
|||
div.system-message { |
|||
border: medium outset ; |
|||
padding: 1em } |
|||
|
|||
div.system-message p.system-message-title { |
|||
color: red ; |
|||
font-weight: bold } |
|||
|
|||
div.topic { |
|||
margin: 2em } |
|||
|
|||
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, |
|||
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { |
|||
margin-top: 0.4em } |
|||
|
|||
h1.title { |
|||
text-align: center } |
|||
|
|||
h2.subtitle { |
|||
text-align: center } |
|||
|
|||
hr.docutils { |
|||
width: 75% } |
|||
|
|||
img.align-left, .figure.align-left, object.align-left, table.align-left { |
|||
clear: left ; |
|||
float: left ; |
|||
margin-right: 1em } |
|||
|
|||
img.align-right, .figure.align-right, object.align-right, table.align-right { |
|||
clear: right ; |
|||
float: right ; |
|||
margin-left: 1em } |
|||
|
|||
img.align-center, .figure.align-center, object.align-center { |
|||
display: block; |
|||
margin-left: auto; |
|||
margin-right: auto; |
|||
} |
|||
|
|||
table.align-center { |
|||
margin-left: auto; |
|||
margin-right: auto; |
|||
} |
|||
|
|||
.align-left { |
|||
text-align: left } |
|||
|
|||
.align-center { |
|||
clear: both ; |
|||
text-align: center } |
|||
|
|||
.align-right { |
|||
text-align: right } |
|||
|
|||
/* reset inner alignment in figures */ |
|||
div.align-right { |
|||
text-align: inherit } |
|||
|
|||
/* div.align-center * { */ |
|||
/* text-align: left } */ |
|||
|
|||
.align-top { |
|||
vertical-align: top } |
|||
|
|||
.align-middle { |
|||
vertical-align: middle } |
|||
|
|||
.align-bottom { |
|||
vertical-align: bottom } |
|||
|
|||
ol.simple, ul.simple { |
|||
margin-bottom: 1em } |
|||
|
|||
ol.arabic { |
|||
list-style: decimal } |
|||
|
|||
ol.loweralpha { |
|||
list-style: lower-alpha } |
|||
|
|||
ol.upperalpha { |
|||
list-style: upper-alpha } |
|||
|
|||
ol.lowerroman { |
|||
list-style: lower-roman } |
|||
|
|||
ol.upperroman { |
|||
list-style: upper-roman } |
|||
|
|||
p.attribution { |
|||
text-align: right ; |
|||
margin-left: 50% } |
|||
|
|||
p.caption { |
|||
font-style: italic } |
|||
|
|||
p.credits { |
|||
font-style: italic ; |
|||
font-size: smaller } |
|||
|
|||
p.label { |
|||
white-space: nowrap } |
|||
|
|||
p.rubric { |
|||
font-weight: bold ; |
|||
font-size: larger ; |
|||
color: maroon ; |
|||
text-align: center } |
|||
|
|||
p.sidebar-title { |
|||
font-family: sans-serif ; |
|||
font-weight: bold ; |
|||
font-size: larger } |
|||
|
|||
p.sidebar-subtitle { |
|||
font-family: sans-serif ; |
|||
font-weight: bold } |
|||
|
|||
p.topic-title { |
|||
font-weight: bold } |
|||
|
|||
pre.address { |
|||
margin-bottom: 0 ; |
|||
margin-top: 0 ; |
|||
font: inherit } |
|||
|
|||
pre.literal-block, pre.doctest-block, pre.math, pre.code { |
|||
margin-left: 2em ; |
|||
margin-right: 2em } |
|||
|
|||
pre.code .ln { color: grey; } /* line numbers */ |
|||
pre.code, code { background-color: #eeeeee } |
|||
pre.code .comment, code .comment { color: #5C6576 } |
|||
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } |
|||
pre.code .literal.string, code .literal.string { color: #0C5404 } |
|||
pre.code .name.builtin, code .name.builtin { color: #352B84 } |
|||
pre.code .deleted, code .deleted { background-color: #DEB0A1} |
|||
pre.code .inserted, code .inserted { background-color: #A3D289} |
|||
|
|||
span.classifier { |
|||
font-family: sans-serif ; |
|||
font-style: oblique } |
|||
|
|||
span.classifier-delimiter { |
|||
font-family: sans-serif ; |
|||
font-weight: bold } |
|||
|
|||
span.interpreted { |
|||
font-family: sans-serif } |
|||
|
|||
span.option { |
|||
white-space: nowrap } |
|||
|
|||
span.pre { |
|||
white-space: pre } |
|||
|
|||
span.problematic { |
|||
color: red } |
|||
|
|||
span.section-subtitle { |
|||
/* font-size relative to parent (h1..h6 element) */ |
|||
font-size: 80% } |
|||
|
|||
table.citation { |
|||
border-left: solid 1px gray; |
|||
margin-left: 1px } |
|||
|
|||
table.docinfo { |
|||
margin: 2em 4em } |
|||
|
|||
table.docutils { |
|||
margin-top: 0.5em ; |
|||
margin-bottom: 0.5em } |
|||
|
|||
table.footnote { |
|||
border-left: solid 1px black; |
|||
margin-left: 1px } |
|||
|
|||
table.docutils td, table.docutils th, |
|||
table.docinfo td, table.docinfo th { |
|||
padding-left: 0.5em ; |
|||
padding-right: 0.5em ; |
|||
vertical-align: top } |
|||
|
|||
table.docutils th.field-name, table.docinfo th.docinfo-name { |
|||
font-weight: bold ; |
|||
text-align: left ; |
|||
white-space: nowrap ; |
|||
padding-left: 0 } |
|||
|
|||
/* "booktabs" style (no vertical lines) */ |
|||
table.docutils.booktabs { |
|||
border: 0px; |
|||
border-top: 2px solid; |
|||
border-bottom: 2px solid; |
|||
border-collapse: collapse; |
|||
} |
|||
table.docutils.booktabs * { |
|||
border: 0px; |
|||
} |
|||
table.docutils.booktabs th { |
|||
border-bottom: thin solid; |
|||
text-align: left; |
|||
} |
|||
|
|||
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, |
|||
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { |
|||
font-size: 100% } |
|||
|
|||
ul.auto-toc { |
|||
list-style-type: none } |
|||
|
|||
</style> |
|||
</head> |
|||
<body> |
|||
<div class="document" id="base-search-mail-content"> |
|||
<h1 class="title">Base Search Mail Content</h1> |
|||
|
|||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|||
!! This file is generated by oca-gen-addon-readme !! |
|||
!! changes will be overwritten. !! |
|||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> |
|||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/social/tree/12.0/base_search_mail_content"><img alt="OCA/social" src="https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/social-12-0/social-12-0-base_search_mail_content"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/205/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> |
|||
<p>This module adds the capability to find on any object (e.g. project issues or |
|||
helpdesk ticket) based on the conversation threads associated to them.</p> |
|||
<p>This will be useful in models that make intense use of messages, |
|||
like project issues or helpdesk tickets.</p> |
|||
<p>A project issue or helpdesk ticket can contain tens of mails or notes |
|||
associated, based on the feedback that the person responsible for the ticket |
|||
maintains, including conversations with the person that raised the issue.</p> |
|||
<p>A user may often want to find issues or tickets, based on the past |
|||
conversations that were recorded, as much as he or she needs to search |
|||
in their mail for past conversations.</p> |
|||
<p>This module will add dynamically a field ‘message_content’ to the search view |
|||
of any model that inherits from the mail.thread.</p> |
|||
<p>The current search capabilities include searching into the subject, body, |
|||
email from, reply to and record name.</p> |
|||
<p><strong>Table of contents</strong></p> |
|||
<div class="contents local topic" id="contents"> |
|||
<ul class="simple"> |
|||
<li><a class="reference internal" href="#installation" id="id1">Installation</a></li> |
|||
<li><a class="reference internal" href="#usage" id="id2">Usage</a></li> |
|||
<li><a class="reference internal" href="#bug-tracker" id="id3">Bug Tracker</a></li> |
|||
<li><a class="reference internal" href="#credits" id="id4">Credits</a><ul> |
|||
<li><a class="reference internal" href="#authors" id="id5">Authors</a></li> |
|||
<li><a class="reference internal" href="#contributors" id="id6">Contributors</a></li> |
|||
<li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li> |
|||
</ul> |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
<div class="section" id="installation"> |
|||
<h1><a class="toc-backref" href="#id1">Installation</a></h1> |
|||
<p>This module depends on the module ‘base_search_fuzzy’ to ensure that |
|||
searches on emails are based on indexes. Please read carefully the |
|||
<a class="reference external" href="https://github.com/OCA/server-tools/blob/11.0/base_search_fuzzy">install instructions</a>.</p> |
|||
<p>This module installs by default the indexes that are required to |
|||
perform the searches on mail messages.</p> |
|||
</div> |
|||
<div class="section" id="usage"> |
|||
<h1><a class="toc-backref" href="#id2">Usage</a></h1> |
|||
<p>Go to any model that contains a chatter (e.g. Contacts, …). Search |
|||
for content in field ‘Message Content’.</p> |
|||
</div> |
|||
<div class="section" id="bug-tracker"> |
|||
<h1><a class="toc-backref" href="#id3">Bug Tracker</a></h1> |
|||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/social/issues">GitHub Issues</a>. |
|||
In case of trouble, please check there if your issue has already been reported. |
|||
If you spotted it first, help us smashing it by providing a detailed and welcomed |
|||
<a class="reference external" href="https://github.com/OCA/social/issues/new?body=module:%20base_search_mail_content%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> |
|||
<p>Do not contact contributors directly about support or help with technical issues.</p> |
|||
</div> |
|||
<div class="section" id="credits"> |
|||
<h1><a class="toc-backref" href="#id4">Credits</a></h1> |
|||
<div class="section" id="authors"> |
|||
<h2><a class="toc-backref" href="#id5">Authors</a></h2> |
|||
<ul class="simple"> |
|||
<li>Eficent</li> |
|||
<li>SerpentCS</li> |
|||
<li>Tecnativa</li> |
|||
</ul> |
|||
</div> |
|||
<div class="section" id="contributors"> |
|||
<h2><a class="toc-backref" href="#id6">Contributors</a></h2> |
|||
<ul class="simple"> |
|||
<li>Jordi Ballester Alomar <<a class="reference external" href="mailto:jordi.ballester@eficent.com">jordi.ballester@eficent.com</a>></li> |
|||
<li>Serpent Consulting Services Pvt. Ltd. <<a class="reference external" href="mailto:support@serpentcs.com">support@serpentcs.com</a>></li> |
|||
<li>Lois Rilo Antelo <<a class="reference external" href="mailto:lois.rilo@eficent.com">lois.rilo@eficent.com</a>></li> |
|||
<li>Aaron Henriquez <<a class="reference external" href="mailto:ahenriquez@eficent.com">ahenriquez@eficent.com</a>></li> |
|||
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul> |
|||
<li>Vicent Cubells</li> |
|||
<li>Ernesto Tejeda</li> |
|||
</ul> |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
<div class="section" id="maintainers"> |
|||
<h2><a class="toc-backref" href="#id7">Maintainers</a></h2> |
|||
<p>This module is maintained by the OCA.</p> |
|||
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> |
|||
<p>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.</p> |
|||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/social/tree/12.0/base_search_mail_content">OCA/social</a> project on GitHub.</p> |
|||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</body> |
|||
</html> |
@ -1,2 +1,3 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
from . import test_base_search_mail_content |
@ -0,0 +1,27 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
|
|||
<record model="ir.ui.view" id="trgm_index_view_form"> |
|||
<field name="name">trgm.index.view.form</field> |
|||
<field name="model">trgm.index</field> |
|||
<field name="inherit_id" ref="base_search_fuzzy.trgm_index_view_form"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="field_id" position="attributes"> |
|||
<attribute name="domain">[('ttype', 'in', ['char', 'text', 'html'])]</attribute> |
|||
<attribute name="help">"You can either select a field of type 'text', 'char' or 'html'."</attribute> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
|
|||
<record model="ir.ui.view" id="trgm_index_view_tree"> |
|||
<field name="name">trgm.index.view.tree</field> |
|||
<field name="model">trgm.index</field> |
|||
<field name="inherit_id" ref="base_search_fuzzy.trgm_index_view_tree"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="field_id" position="attributes"> |
|||
<attribute name="help">"You can either select a field of type 'text', 'char' or 'html'."</attribute> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
|
|||
</odoo> |
@ -0,0 +1,52 @@ |
|||
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg |
|||
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html |
|||
:alt: License: LGPL-3 |
|||
|
|||
===================== |
|||
Bus Presence Override |
|||
===================== |
|||
|
|||
This module adds the ability for users to define their Online, Away, or Offline status |
|||
manually instead of the system calculating it. |
|||
|
|||
Away and disconnection timers are still in effect. |
|||
|
|||
Usage |
|||
===== |
|||
|
|||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas |
|||
:alt: Try me on Runbot |
|||
:target: https://runbot.odoo-community.org/runbot/205/10.0 |
|||
|
|||
Known Issues / Roadmap |
|||
====================== |
|||
|
|||
Bug Tracker |
|||
=========== |
|||
|
|||
Bugs are tracked on `GitHub Issues |
|||
<https://github.com/OCA/social/issues>`_. In case of trouble, please |
|||
check there if your issue has already been reported. If you spotted it first, |
|||
help us smash it by providing detailed and welcomed feedback. |
|||
|
|||
Credits |
|||
======= |
|||
|
|||
Images |
|||
------ |
|||
|
|||
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_. |
|||
|
|||
Contributors |
|||
------------ |
|||
|
|||
* Brett Wood <bwood@laslabs.com> |
|||
|
|||
Maintainer |
|||
---------- |
|||
|
|||
.. image:: https://odoo-community.org/logo.png |
|||
:alt: Odoo Community Association |
|||
:target: https://odoo-community.org |
|||
|
|||
This module is maintained by the OCA. |
@ -0,0 +1,6 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2017 LasLabs Inc. |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
from . import controllers |
|||
from . import models |
@ -0,0 +1,24 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2017 LasLabs Inc. |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
{ |
|||
"name": "Bus Presence Override", |
|||
"summary": "Adds user-defined im status (online, away, offline).", |
|||
"version": "10.0.1.0.0", |
|||
"category": "Social", |
|||
"website": "https://github.com/OCA/social", |
|||
"author": "LasLabs, Odoo Community Association (OCA)", |
|||
"license": "LGPL-3", |
|||
"application": False, |
|||
"installable": True, |
|||
"depends": [ |
|||
"mail", |
|||
], |
|||
"data": [ |
|||
"views/assets.xml", |
|||
], |
|||
"qweb": [ |
|||
"static/src/xml/bus_presence_systray.xml", |
|||
], |
|||
} |
@ -0,0 +1,5 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2017 LasLabs Inc. |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
from . import main |
@ -0,0 +1,21 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2017 LasLabs Inc. |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
from odoo.http import request |
|||
from odoo.addons.bus.controllers.main import BusController |
|||
|
|||
|
|||
class BusController(BusController): |
|||
|
|||
def _poll(self, dbname, channels, last, options): |
|||
if request.uid: |
|||
partner = request.env.user.partner_id |
|||
if 'bus_presence_partner_ids' in options: |
|||
options['bus_presence_partner_ids'].append(partner.id) |
|||
else: |
|||
options['bus_presence_partner_ids'] = [partner.id] |
|||
|
|||
return super(BusController, self)._poll( |
|||
dbname, channels, last, options, |
|||
) |
@ -0,0 +1,77 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * bus_presence_override |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 10.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"Last-Translator: <>\n" |
|||
"Language-Team: \n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Plural-Forms: \n" |
|||
|
|||
#. module: bus_presence_override |
|||
#. openerp-web |
|||
#: code:addons/bus_presence_override/static/src/xml/bus_presence_systray.xml:24 |
|||
#: selection:bus.presence,status_realtime:0 |
|||
#, python-format |
|||
msgid "Away" |
|||
msgstr "" |
|||
|
|||
#. module: bus_presence_override |
|||
#. openerp-web |
|||
#: code:addons/bus_presence_override/static/src/xml/bus_presence_systray.xml:30 |
|||
#: selection:bus.presence,status_realtime:0 |
|||
#, python-format |
|||
msgid "Offline" |
|||
msgstr "" |
|||
|
|||
#. module: bus_presence_override |
|||
#. openerp-web |
|||
#: code:addons/bus_presence_override/static/src/xml/bus_presence_systray.xml:18 |
|||
#: selection:bus.presence,status_realtime:0 |
|||
#, python-format |
|||
msgid "Online" |
|||
msgstr "" |
|||
|
|||
#. module: bus_presence_override |
|||
#: model:ir.model,name:bus_presence_override.model_res_partner |
|||
#: model:ir.model.fields,field_description:bus_presence_override.field_bus_presence_partner_id |
|||
msgid "Partner" |
|||
msgstr "" |
|||
|
|||
#. module: bus_presence_override |
|||
#: model:ir.model.fields,help:bus_presence_override.field_bus_presence_partner_id |
|||
msgid "Partner-related data of the user" |
|||
msgstr "" |
|||
|
|||
#. module: bus_presence_override |
|||
#: model:ir.model.fields,field_description:bus_presence_override.field_bus_presence_status_realtime |
|||
msgid "Realtime IM Status" |
|||
msgstr "" |
|||
|
|||
#. module: bus_presence_override |
|||
#. openerp-web |
|||
#: code:addons/bus_presence_override/static/src/xml/bus_presence_systray.xml:14 |
|||
#, python-format |
|||
msgid "Status" |
|||
msgstr "" |
|||
|
|||
#. module: bus_presence_override |
|||
#: model:ir.model.fields,help:bus_presence_override.field_bus_presence_status_realtime |
|||
msgid "Status that is affected by disconnection and away timers. Used to override the bus.presence status field in _get_partners_statuses or _get_users_statuses if the timers have been reached. If wanting to change the user status, write directly to the status field." |
|||
msgstr "" |
|||
|
|||
#. module: bus_presence_override |
|||
#: model:ir.model,name:bus_presence_override.model_bus_presence |
|||
msgid "User Presence" |
|||
msgstr "" |
|||
|
|||
#. module: bus_presence_override |
|||
#: model:ir.model,name:bus_presence_override.model_res_users |
|||
msgid "Users" |
|||
msgstr "" |
|||
|
@ -0,0 +1,7 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2017 LasLabs Inc. |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
from . import bus_presence |
|||
from . import res_partner |
|||
from . import res_users |
@ -0,0 +1,88 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2017 LasLabs Inc. |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
from datetime import datetime |
|||
|
|||
from odoo import api, fields, models |
|||
from odoo.addons.bus.models.bus_presence import AWAY_TIMER, DISCONNECTION_TIMER |
|||
|
|||
from ..status_constants import ONLINE, AWAY, OFFLINE |
|||
|
|||
|
|||
class BusPresence(models.Model): |
|||
|
|||
_inherit = 'bus.presence' |
|||
|
|||
status_realtime = fields.Selection( |
|||
selection=[ |
|||
(ONLINE, 'Online'), |
|||
(AWAY, 'Away'), |
|||
(OFFLINE, 'Offline') |
|||
], |
|||
string='Realtime IM Status', |
|||
compute='_compute_status_realtime', |
|||
help='Status that is affected by disconnection ' |
|||
'and away timers. Used to override the bus.presence ' |
|||
'status field in _get_partners_statuses or ' |
|||
'_get_users_statuses if the timers have been reached. ' |
|||
'If wanting to change the user status, write ' |
|||
'directly to the status field.', |
|||
) |
|||
partner_id = fields.Many2one( |
|||
string='Partner', |
|||
related='user_id.partner_id', |
|||
comodel_name='res.partner', |
|||
) |
|||
|
|||
@api.multi |
|||
def _get_partners_statuses(self): |
|||
self._status_check_disconnection_and_away_timers() |
|||
return {rec.partner_id.id: rec.status for rec in self} |
|||
|
|||
@api.multi |
|||
def _get_users_statuses(self): |
|||
self._status_check_disconnection_and_away_timers() |
|||
return {rec.user_id.id: rec.status for rec in self} |
|||
|
|||
@api.multi |
|||
def _status_check_disconnection_and_away_timers(self): |
|||
""" Overrides user-defined status if timers reached """ |
|||
for record in self: |
|||
|
|||
status_realtime = record.status_realtime |
|||
status_stored = record.status |
|||
|
|||
conditions = ( |
|||
status_realtime == OFFLINE, |
|||
status_realtime == AWAY and status_stored == ONLINE, |
|||
) |
|||
|
|||
if any(conditions): |
|||
record.status = status_realtime |
|||
|
|||
@api.multi |
|||
def _compute_status_realtime(self): |
|||
|
|||
now_dt = datetime.now() |
|||
|
|||
for record in self: |
|||
|
|||
last_poll = fields.Datetime.from_string( |
|||
record.last_poll |
|||
) |
|||
last_presence = fields.Datetime.from_string( |
|||
record.last_presence |
|||
) |
|||
|
|||
last_poll_s = (now_dt - last_poll).total_seconds() |
|||
last_presence_s = (now_dt - last_presence).total_seconds() |
|||
|
|||
if last_poll_s > DISCONNECTION_TIMER: |
|||
record.status_realtime = OFFLINE |
|||
|
|||
elif last_presence_s > AWAY_TIMER: |
|||
record.status_realtime = AWAY |
|||
|
|||
else: |
|||
record.status_realtime = ONLINE |
@ -0,0 +1,21 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2017 LasLabs Inc. |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
from odoo import api, models |
|||
|
|||
from ..status_constants import OFFLINE |
|||
|
|||
|
|||
class ResPartner(models.Model): |
|||
|
|||
_inherit = 'res.partner' |
|||
|
|||
@api.multi |
|||
def _compute_im_status(self): |
|||
bus_recs = self.env['bus.presence'].search([ |
|||
('partner_id', 'in', self.ids), |
|||
]) |
|||
statuses = bus_recs._get_partners_statuses() |
|||
for record in self: |
|||
record.im_status = statuses.get(record.id, OFFLINE) |
@ -0,0 +1,21 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2017 LasLabs Inc. |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
from odoo import api, models |
|||
|
|||
from ..status_constants import OFFLINE |
|||
|
|||
|
|||
class ResUsers(models.Model): |
|||
|
|||
_inherit = 'res.users' |
|||
|
|||
@api.multi |
|||
def _compute_im_status(self): |
|||
bus_recs = self.env['bus.presence'].search([ |
|||
('user_id', 'in', self.ids), |
|||
]) |
|||
statuses = bus_recs._get_users_statuses() |
|||
for record in self: |
|||
record.im_status = statuses.get(record.id, OFFLINE) |
Before Width: 128 | Height: 128 | Size: 9.2 KiB After Width: 128 | Height: 128 | Size: 9.2 KiB |
@ -0,0 +1,106 @@ |
|||
/* Copyright 2017 LasLabs Inc. |
|||
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */
|
|||
|
|||
odoo.define('bus_presence_systray', function (require) { |
|||
"use strict"; |
|||
|
|||
var Bus = require('bus.bus').bus; |
|||
var DataModel = require('web.DataModel'); |
|||
var Session = require('web.session'); |
|||
var SystrayMenu = require('web.SystrayMenu'); |
|||
var Widget = require('web.Widget'); |
|||
var Qweb = require('web.core').qweb; |
|||
var LocalStorage = require('web.local_storage'); |
|||
|
|||
function on(type, listener) { |
|||
if (window.addEventListener) { |
|||
window.addEventListener(type, listener); |
|||
} else { |
|||
// IE8
|
|||
window.attachEvent('on' + type, listener); |
|||
} |
|||
} |
|||
|
|||
var BusPresenceSystray = Widget.extend({ |
|||
template: 'bus_presence_systray', |
|||
events: { |
|||
'click .o-user-status-select': 'onClickUserStatusSelect', |
|||
}, |
|||
init: function() { |
|||
this._super.apply(this, arguments); |
|||
this.resPartnerMod = new DataModel('res.partner'); |
|||
this.busPresenceMod = new DataModel('bus.presence'); |
|||
Bus.on('notification', this, _.throttle(this.notificationsUpdateCurrentUserStatus.bind(this), 100, {leading: false})); |
|||
on('storage', this.onStorage.bind(this)); |
|||
}, |
|||
start: function () { |
|||
this.startDetermineUserStatus(); |
|||
Bus.start_polling(); |
|||
return this._super(); |
|||
}, |
|||
startDetermineUserStatus: function () { |
|||
if (Bus.is_master === true) { |
|||
this.writeBusPresenceStatus('online'); |
|||
this.updateUserStatusIcon('online'); |
|||
LocalStorage.setItem('user.partner_im_status', 'online'); |
|||
} else { |
|||
var statusVal = LocalStorage.getItem('user.partner_im_status'); |
|||
this.updateUserStatusIcon(statusVal); |
|||
} |
|||
}, |
|||
onStorage: function (event) { |
|||
if (event.key === 'user.partner_im_status') { |
|||
this.updateUserStatusIcon(event.newValue); |
|||
} |
|||
}, |
|||
notificationsUpdateCurrentUserStatus: function (notifications) { |
|||
_.each(notifications, $.proxy( |
|||
function (notification) { |
|||
var model = notification[0][1]; |
|||
var partnerId = notification[1].id; |
|||
if (model === 'bus.presence' && partnerId === Session.partner_id) { |
|||
var status = notification[1].im_status; |
|||
this.updateUserStatusIcon(status); |
|||
LocalStorage.setItem('user.partner_im_status', status); |
|||
} |
|||
}, this) |
|||
); |
|||
}, |
|||
queryUpdateCurrentUserStatus: function () { |
|||
this.resPartnerMod.query(['im_status']) |
|||
.filter([['id', '=', Session.partner_id]]) |
|||
.first() |
|||
.then($.proxy( |
|||
function (result) { |
|||
this.updateUserStatusIcon(result.im_status); |
|||
LocalStorage.setItem('user.partner_im_status', status); |
|||
}, this) |
|||
); |
|||
}, |
|||
updateUserStatusIcon: function (status) { |
|||
var options = {'status': status}; |
|||
var $icon = this.$('.o-user-systray-status'); |
|||
$icon.empty().append($(Qweb.render('mail.chat.UserStatus', options))); |
|||
}, |
|||
onClickUserStatusSelect: function (event) { |
|||
var status = $(event.currentTarget).attr('name'); |
|||
this.updateUserStatusIcon(status); |
|||
this.writeBusPresenceStatus(status); |
|||
LocalStorage.setItem('user.partner_im_status', status); |
|||
}, |
|||
writeBusPresenceStatus: function (status) { |
|||
this.busPresenceMod.query(['id']) |
|||
.filter([['partner_id', '=', Session.partner_id]]) |
|||
.first() |
|||
.then($.proxy( |
|||
function (result) { |
|||
this.busPresenceMod.call('write', [[result.id], {'status': status}]); |
|||
}, this) |
|||
); |
|||
}, |
|||
}); |
|||
|
|||
SystrayMenu.Items.push(BusPresenceSystray); |
|||
|
|||
}); |
|||
|
@ -0,0 +1,21 @@ |
|||
/* Copyright 2017 LasLabs Inc. |
|||
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */ |
|||
|
|||
.o-user-systray-status { |
|||
i { |
|||
margin-top: 2px; |
|||
&:hover { |
|||
color: @gray-lighter; |
|||
} |
|||
} |
|||
} |
|||
.o-user-presence-dropdown { |
|||
min-width: 85px; |
|||
.o-user-status-select { |
|||
margin-top: 2px; |
|||
padding: 4px 8px; |
|||
width: 100%; |
|||
display: block; |
|||
font-size: 13px; |
|||
} |
|||
} |
@ -0,0 +1,38 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- Copyright 2017 LasLabs Inc. |
|||
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). --> |
|||
|
|||
<templates> |
|||
|
|||
<t t-name="bus_presence_systray"> |
|||
<li class="o_mail_navbar_item"> |
|||
<a title="Status" |
|||
class="dropdown-toggle o-user-systray-status" |
|||
data-toggle="dropdown" |
|||
aria-expanded="false" |
|||
href="#" |
|||
/> |
|||
<ul class="dropdown-menu o-user-presence-dropdown" role="menu"> |
|||
<li> |
|||
<a name="online" class="o-user-status-select" href="#"> |
|||
<i t-attf-class="o_mail_user_status o_user_online fa fa-circle" /> |
|||
Online |
|||
</a> |
|||
</li> |
|||
<li> |
|||
<a name="away" class="o-user-status-select" href="#"> |
|||
<i class="o_mail_user_status o_user_idle fa fa-circle" /> |
|||
Away |
|||
</a> |
|||
</li> |
|||
<li> |
|||
<a name="offline" class="o-user-status-select" href="#"> |
|||
<i class="o_mail_user_status fa fa-circle-o" /> |
|||
Offline |
|||
</a> |
|||
</li> |
|||
</ul> |
|||
</li> |
|||
</t> |
|||
|
|||
</templates> |
@ -0,0 +1,7 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2017 LasLabs Inc. |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
ONLINE = 'online' |
|||
AWAY = 'away' |
|||
OFFLINE = 'offline' |
@ -0,0 +1,7 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2017 LasLabs Inc. |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
from . import test_bus_presence |
|||
from . import test_res_partner |
|||
from . import test_res_users |
@ -0,0 +1,28 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2017 LasLabs Inc. |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
from odoo.tests.common import TransactionCase |
|||
|
|||
|
|||
class BusSetup(TransactionCase): |
|||
|
|||
def setUp(self): |
|||
super(BusSetup, self).setUp() |
|||
self.u_admin = self.env.ref('base.user_root') |
|||
self.p_admin = self.u_admin.partner_id |
|||
|
|||
self.u_demo = self.env.ref('base.user_demo') |
|||
self.p_demo = self.u_demo.partner_id |
|||
|
|||
self.pres_admin = self._get_bus_presence(self.u_admin) |
|||
self.pres_demo = self._get_bus_presence(self.u_demo) |
|||
|
|||
# AWAY_TIMER = 55 seconds |
|||
# DISCONNECTION_TIMER = 1800 seconds (30 minutes) |
|||
|
|||
def _get_bus_presence(self, user): |
|||
pres = self.env['bus.presence'].search([('user_id', '=', user.id)]) |
|||
if not pres: |
|||
pres = self.env['bus.presence'].create({'user_id': user.id}) |
|||
return pres |
@ -0,0 +1,120 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2017 LasLabs Inc. |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
from mock import patch |
|||
|
|||
from .bus_setup import BusSetup |
|||
from ..status_constants import ONLINE, AWAY, OFFLINE |
|||
|
|||
AWAY_TIMER = 'odoo.addons.bus_presence_override.models.' \ |
|||
'bus_presence.AWAY_TIMER' |
|||
|
|||
DISCONNECTION_TIMER = 'odoo.addons.bus_presence_override.models.' \ |
|||
'bus_presence.DISCONNECTION_TIMER' |
|||
|
|||
|
|||
class TestBusPresence(BusSetup): |
|||
|
|||
@patch(AWAY_TIMER, 10000000) |
|||
@patch(DISCONNECTION_TIMER, 10000000) |
|||
def test_compute_status_realtime_online(self): |
|||
""" It should be computed to online """ |
|||
self.assertEquals( |
|||
self.pres_admin.status_realtime, |
|||
ONLINE, |
|||
) |
|||
|
|||
@patch(AWAY_TIMER, 10000000) |
|||
@patch(DISCONNECTION_TIMER, 0) |
|||
def test_compute_status_realtime_offline(self): |
|||
""" It should be computed to offline """ |
|||
self.assertEquals( |
|||
self.pres_admin.status_realtime, |
|||
OFFLINE, |
|||
) |
|||
|
|||
@patch(AWAY_TIMER, 0) |
|||
@patch(DISCONNECTION_TIMER, 10000000) |
|||
def test_compute_status_realtime_away(self): |
|||
""" It should be computed to away """ |
|||
self.assertEquals( |
|||
self.pres_admin.status_realtime, |
|||
AWAY, |
|||
) |
|||
|
|||
@patch(AWAY_TIMER, 0) |
|||
@patch(DISCONNECTION_TIMER, 0) |
|||
def test_compute_status_realtime_both(self): |
|||
""" It should be computed to offline even though away as well """ |
|||
self.assertEquals( |
|||
self.pres_admin.status_realtime, |
|||
OFFLINE, |
|||
) |
|||
|
|||
@patch(AWAY_TIMER, 0) |
|||
@patch(DISCONNECTION_TIMER, 0) |
|||
def test_status_check_timers_offline(self): |
|||
""" It should be changed to offline from online """ |
|||
self.pres_admin.status = ONLINE |
|||
self.assertEquals( |
|||
self.pres_admin.status, |
|||
ONLINE, |
|||
) |
|||
self.pres_admin._status_check_disconnection_and_away_timers() |
|||
self.assertEquals( |
|||
self.pres_admin.status, |
|||
OFFLINE, |
|||
) |
|||
|
|||
@patch(AWAY_TIMER, 0) |
|||
@patch(DISCONNECTION_TIMER, 10000000) |
|||
def test_status_check_timers_away(self): |
|||
""" It should be changed to away from online """ |
|||
self.pres_admin.status = ONLINE |
|||
self.assertEquals( |
|||
self.pres_admin.status, |
|||
ONLINE, |
|||
) |
|||
self.pres_admin._status_check_disconnection_and_away_timers() |
|||
self.assertEquals( |
|||
self.pres_admin.status, |
|||
AWAY, |
|||
) |
|||
|
|||
@patch(AWAY_TIMER, 0) |
|||
@patch(DISCONNECTION_TIMER, 10000000) |
|||
def test_status_check_timers_unchanged(self): |
|||
""" It should remain at offline even if status_realtime away """ |
|||
self.pres_admin.status = OFFLINE |
|||
self.assertEquals( |
|||
self.pres_admin.status, |
|||
OFFLINE, |
|||
) |
|||
self.pres_admin._status_check_disconnection_and_away_timers() |
|||
self.assertEquals( |
|||
self.pres_admin.status, |
|||
OFFLINE, |
|||
) |
|||
|
|||
def test_get_partners_im_statuses(self): |
|||
""" It should include demo and admin partner statuses """ |
|||
recs = self.env['bus.presence'].search([( |
|||
'partner_id', 'in', [self.p_admin.id, self.p_demo.id])] |
|||
) |
|||
statuses = recs._get_partners_statuses() |
|||
self.assertIn( |
|||
self.p_admin.id, |
|||
statuses, |
|||
) |
|||
|
|||
def test_get_users_im_statuses(self): |
|||
""" It should include demo and admin user statuses """ |
|||
recs = self.env['bus.presence'].search([( |
|||
'user_id', 'in', [self.u_admin.id, self.u_demo.id])] |
|||
) |
|||
statuses = recs._get_users_statuses() |
|||
self.assertIn( |
|||
self.u_admin.id, |
|||
statuses, |
|||
) |
@ -0,0 +1,27 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2017 LasLabs Inc. |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
from mock import patch |
|||
|
|||
from .bus_setup import BusSetup |
|||
from ..status_constants import ONLINE |
|||
|
|||
AWAY_TIMER = 'odoo.addons.bus_presence_override.models.' \ |
|||
'bus_presence.AWAY_TIMER' |
|||
|
|||
DISCONNECTION_TIMER = 'odoo.addons.bus_presence_override.models.' \ |
|||
'bus_presence.DISCONNECTION_TIMER' |
|||
|
|||
|
|||
class TestResPartner(BusSetup): |
|||
|
|||
@patch(AWAY_TIMER, 10000000) |
|||
@patch(DISCONNECTION_TIMER, 10000000) |
|||
def test_compute_im_status_online(self): |
|||
""" It should be computed to online """ |
|||
self.pres_admin.status = ONLINE |
|||
self.assertEquals( |
|||
self.p_admin.im_status, |
|||
ONLINE, |
|||
) |
@ -0,0 +1,28 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2017 LasLabs Inc. |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
from mock import patch |
|||
|
|||
from .bus_setup import BusSetup |
|||
from ..status_constants import ONLINE |
|||
|
|||
|
|||
AWAY_TIMER = 'odoo.addons.bus_presence_override.models.' \ |
|||
'bus_presence.AWAY_TIMER' |
|||
|
|||
DISCONNECTION_TIMER = 'odoo.addons.bus_presence_override.models.' \ |
|||
'bus_presence.DISCONNECTION_TIMER' |
|||
|
|||
|
|||
class TestResUsers(BusSetup): |
|||
|
|||
@patch(AWAY_TIMER, 10000000) |
|||
@patch(DISCONNECTION_TIMER, 10000000) |
|||
def test_compute_im_status_online(self): |
|||
""" It should be computed to online """ |
|||
self.pres_admin.status = ONLINE |
|||
self.assertEquals( |
|||
self.u_admin.im_status, |
|||
ONLINE, |
|||
) |
@ -0,0 +1,16 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- Copyright 2017 LasLabs Inc. |
|||
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). --> |
|||
|
|||
<odoo> |
|||
|
|||
<template id="assets_backend" name="Bus Presence Override Assets" inherit_id="web.assets_backend"> |
|||
<xpath expr="." position="inside"> |
|||
<link rel="stylesheet" href="/bus_presence_override/static/src/less/bus_presence_systray.less"/> |
|||
<script type="text/javascript" |
|||
src="/bus_presence_override/static/src/js/bus_presence_systray.js" |
|||
/> |
|||
</xpath> |
|||
</template> |
|||
|
|||
</odoo> |
@ -1,91 +1,72 @@ |
|||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg |
|||
:alt: License: AGPL-3 |
|||
|
|||
======================== |
|||
QWeb for email templates |
|||
======================== |
|||
|
|||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|||
!! This file is generated by oca-gen-addon-readme !! |
|||
!! changes will be overwritten. !! |
|||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|||
|
|||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png |
|||
:target: https://odoo-community.org/page/development-status |
|||
:alt: Beta |
|||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png |
|||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html |
|||
:alt: License: AGPL-3 |
|||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github |
|||
:target: https://github.com/OCA/social/tree/12.0/email_template_qweb |
|||
:alt: OCA/social |
|||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png |
|||
:target: https://translation.odoo-community.org/projects/social-12-0/social-12-0-email_template_qweb |
|||
:alt: Translate me on Weblate |
|||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png |
|||
:target: https://runbot.odoo-community.org/runbot/205/12.0 |
|||
:alt: Try me on Runbot |
|||
|
|||
|badge1| |badge2| |badge3| |badge4| |badge5| |
|||
|
|||
This module was written to allow you to write email templates in QWeb instead |
|||
of jinja2. The advantage here is that with QWeb, you can make use of |
|||
inheritance and the ``call`` statement, which allows you to reuse designs and |
|||
snippets in multiple templates, making your development process simpler. |
|||
Furthermore, QWeb views are easier to edit with the integrated ACE editor. |
|||
|
|||
**Table of contents** |
|||
|
|||
.. contents:: |
|||
:local: |
|||
|
|||
Usage |
|||
===== |
|||
|
|||
To use this module, you need to: |
|||
|
|||
#. Select `QWeb` in the field `Body templating engine` |
|||
#. Select a QWeb view to be used to render the body field |
|||
#. Apart from QWeb's standard variables, you also have access to ``object`` and ``email_template``, which are browse records of the current object and the email template in use, respectively. |
|||
* Select `QWeb` in the field `Body templating engine` |
|||
* Select a QWeb view to be used to render the body field |
|||
* Apart from QWeb's standard variables, you also have access to ``object`` and |
|||
``email_template``, which are browse records of the current object and the |
|||
email template in use, respectively. |
|||
|
|||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas |
|||
:alt: Try me on Runbot |
|||
:target: https://runbot.odoo-community.org/runbot/205/10.0 |
|||
|
|||
Demo data contains an example on how to separate corporate identity from a |
|||
template's content. |
|||
|
|||
For further information, please visit: |
|||
|
|||
* https://www.odoo.com/forum/help-1 |
|||
|
|||
Bug Tracker |
|||
=========== |
|||
|
|||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/social/issues>`_. |
|||
In case of trouble, please check there if your issue has already been reported. |
|||
If you spotted it first, help us smashing it by providing a detailed and welcomed |
|||
`feedback <https://github.com/OCA/social/issues/new?body=module:%20email_template_qweb%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. |
|||
|
|||
Do not contact contributors directly about support or help with technical issues. |
|||
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback |
|||
`here <https://github.com/OCA/social/issues/new?body=module:%20email_template_qweb%0Aversion:%209.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. |
|||
|
|||
Credits |
|||
======= |
|||
|
|||
Authors |
|||
~~~~~~~ |
|||
|
|||
* Therp BV |
|||
|
|||
Contributors |
|||
~~~~~~~~~~~~ |
|||
------------ |
|||
|
|||
* Holger Brunn <hbrunn@therp.nl> |
|||
* Dave Lasley <dave@laslabs.com> |
|||
* Carlos Lopez Mite <celm1990@gmail.com> |
|||
* `Tecnativa <https://www.tecnativa.com>`_: |
|||
|
|||
* Ernesto Tejeda |
|||
Do not contact contributors directly about help with questions or problems concerning |
|||
this addon, but use the `forum <https://www.odoo.com/forum/help-1>`_, |
|||
the `community mailing list <mailto:community@mail.odoo.com>`_, |
|||
or the `appropriate specialized mailinglist <https://odoo-community.org/groups>`_ for help, |
|||
and the bug tracker linked in `Bug Tracker`_ above for technical issues. |
|||
|
|||
Maintainers |
|||
~~~~~~~~~~~ |
|||
|
|||
This module is maintained by the OCA. |
|||
Maintainer |
|||
---------- |
|||
|
|||
.. image:: https://odoo-community.org/logo.png |
|||
:alt: Odoo Community Association |
|||
:target: https://odoo-community.org |
|||
|
|||
This module is maintained by the OCA. |
|||
|
|||
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. |
|||
|
|||
This module is part of the `OCA/social <https://github.com/OCA/social/tree/12.0/email_template_qweb>`_ project on GitHub. |
|||
|
|||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
|||
To contribute to this module, please visit https://odoo-community.org. |
@ -1,3 +1,4 @@ |
|||
# Copyright 2016 Therp BV <http://therp.nl> |
|||
# -*- coding: utf-8 -*- |
|||
# © 2016 Therp BV <http://therp.nl> |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
from . import models |
@ -1,69 +0,0 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * email_template_qweb |
|||
# |
|||
# Translators: |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: social (9.0)\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2016-05-19 02:50+0000\n" |
|||
"PO-Revision-Date: 2016-05-18 14:54+0000\n" |
|||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n" |
|||
"Language-Team: English (http://www.transifex.com/oca/OCA-social-9-0/language/" |
|||
"en/)\n" |
|||
"Language: en\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
|||
|
|||
#. module: email_template_qweb |
|||
#: model:ir.model.fields,field_description:email_template_qweb.field_email_template_preview__body_type |
|||
#: model:ir.model.fields,field_description:email_template_qweb.field_mail_template__body_type |
|||
msgid "Body templating engine" |
|||
msgstr "Body templating engine" |
|||
|
|||
#. module: email_template_qweb |
|||
#: model:ir.model.fields,field_description:email_template_qweb.field_email_template_preview__body_view_id |
|||
#: model:ir.model.fields,field_description:email_template_qweb.field_mail_template__body_view_id |
|||
msgid "Body view" |
|||
msgstr "Body view" |
|||
|
|||
#. module: email_template_qweb |
|||
#: model_terms:ir.ui.view,arch_db:email_template_qweb.view_email_template_demo1 |
|||
msgid "Dear" |
|||
msgstr "Dear" |
|||
|
|||
#. module: email_template_qweb |
|||
#: model:ir.model,name:email_template_qweb.model_mail_template |
|||
msgid "Email Templates" |
|||
msgstr "Email Templates" |
|||
|
|||
#. module: email_template_qweb |
|||
#: selection:email_template.preview,body_type:0 |
|||
#: selection:mail.template,body_type:0 |
|||
msgid "Jinja2" |
|||
msgstr "Jinja2" |
|||
|
|||
#. module: email_template_qweb |
|||
#: selection:email_template.preview,body_type:0 |
|||
#: selection:mail.template,body_type:0 |
|||
msgid "QWeb" |
|||
msgstr "QWeb" |
|||
|
|||
#. module: email_template_qweb |
|||
#: model:mail.template,subject:email_template_qweb.email_template_demo1 |
|||
msgid "QWeb demo email" |
|||
msgstr "QWeb demo email" |
|||
|
|||
#. module: email_template_qweb |
|||
#: model_terms:ir.ui.view,arch_db:email_template_qweb.view_email_template_demo1 |
|||
msgid "This is an email template using qweb." |
|||
msgstr "This is an email template using qweb." |
|||
|
|||
#. module: email_template_qweb |
|||
#: model:ir.model.fields,field_description:email_template_qweb.field_email_template_preview__body_view_arch |
|||
#: model:ir.model.fields,field_description:email_template_qweb.field_mail_template__body_view_arch |
|||
msgid "View Architecture" |
|||
msgstr "View Architecture" |
Some files were not shown because too many files changed in this diff
Write
Preview
Loading…
Cancel
Save
Reference in new issue