summaryrefslogtreecommitdiff
path: root/addons/sms/security/ir.model.access.csv
diff options
context:
space:
mode:
authorPierre Rousseau <pro@odoo.com>2019-05-24 10:12:44 +0000
committerThibault Delavallée <tde@odoo.com>2019-07-12 14:54:11 +0000
commit9ad7a88a08ceccc3665acd8972ac47614205bf0e (patch)
tree348f777d91be2bb14fdb48f2a6b2a2a1b29664e7 /addons/sms/security/ir.model.access.csv
parentbdebcab0cea467e070c1936fed16173247abafdd (diff)
[IMP] sms: add SMS template and its support in SMS composer
Purpose of this commit is to provide users templates to use when sending SMS. It is inspired from what already exists for mail templates. This commit * adds templates for SMS * users can now create template for SMS Text messages similar to mail templates; * jinja syntax is supported for body like mail templates, which is why templates are linked to a given model; * refactor the SMS composer * templates are supported in composer like the message composer. This is supported only in mass mode to avoid bloating the interface in standard composition mode; * composer code is rewritten to support various use cases (comment, mass sms, numbers, ...) and better fits all use cases; * composer is extended to support notably mass SMS without posting messages; Templates will also be used in a near future in mass sms sending (mass mailing application improvement) and in marketing automation (for enterprise). Tests are updated and added to ensure feature works. Related to task 1922163 Linked to PR #33510 Co-Authored-By: Thibault Delavallee <tde@odoo.com> Co-Authored-By: Pierre Rousseau <pro@odoo.com>
Diffstat (limited to 'addons/sms/security/ir.model.access.csv')
-rw-r--r--addons/sms/security/ir.model.access.csv3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/sms/security/ir.model.access.csv b/addons/sms/security/ir.model.access.csv
index 42c4d624aaa..c906bc097b7 100644
--- a/addons/sms/security/ir.model.access.csv
+++ b/addons/sms/security/ir.model.access.csv
@@ -1,3 +1,6 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_sms_sms_all,access.sms.sms.all,model_sms_sms,,0,0,0,0
access_sms_sms_system,access.sms.sms.system,model_sms_sms,base.group_system,1,1,1,1
+access_sms_template_all,access.sms.template.all,model_sms_template,,0,0,0,0
+access_sms_template_user,access.sms.template.user,model_sms_template,base.group_user,1,0,0,0
+access_sms_template_system,access.sms.template.system,model_sms_template,base.group_system,1,1,1,0