summaryrefslogtreecommitdiff
path: root/odoo/tools/mail.py
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2018-03-13 15:53:37 +0100
committerThibault Delavallée <tde@odoo.com>2018-03-16 11:00:35 +0100
commitcd69ea8f9ace289977d22077e9e24b19928b705e (patch)
tree7cb39bf40d5a284a3c3a1ff353b454e345f0456c /odoo/tools/mail.py
parent8a7a2c7af2d4a56104e7652a3563e1fd7596fdce (diff)
[REM] crm, project: remove support of mail-based record update
Currently crm and project parse incoming email body following an old syntax to find some "set field - value" lines in the email content. It is used to update the record linked to the discussion directly from the email. However this feature is undocumented and not really supported anymore. Moreover we don't think being able to update records from emails is a reliable way of working. Moreover those update is limited to * revenue and probably for leads; this should totally be managed from the pipeline view by lead / opportunity responsible; * priority update coming from a "priority" entry in the incoming email; this code seems strange as priority is probably not standard in email headers; * planned hours for project; this should be managed by project user and managers through dedicated views in Odoo; Let us remove that old feature and let people use desktop or mobile interface to update their records.
Diffstat (limited to 'odoo/tools/mail.py')
-rw-r--r--odoo/tools/mail.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/odoo/tools/mail.py b/odoo/tools/mail.py
index ce1ccb90e3a..0b4608c62e3 100644
--- a/odoo/tools/mail.py
+++ b/odoo/tools/mail.py
@@ -415,9 +415,6 @@ email_re = re.compile(r"""([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,63})""",
# matches a string containing only one email
single_email_re = re.compile(r"""^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,63}$""", re.VERBOSE)
-# update command in emails body
-command_re = re.compile("^Set-([a-z]+) *: *(.+)$", re.I + re.UNICODE)
-
# Updated in 7.0 to match the model name as well
# Typical form of references is <timestamp-openerp-record_id-model_name@domain>
# group(1) = the record ID ; group(2) = the model (if any) ; group(3) = the domain