[ADD] sale_sms: ease sms use in sales application

Purpose of this commit is to add a bridge between sales and sms, notably to
add capability to edit sale order SMS templates for sales managers.

Task ID-2319841
PR odoo/odoo#56297
Upgrade PR odoo/upgrade#1829
Closes #55432

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
Lavish Chhatwani
2020-10-09 07:35:59 +00:00
committed by Thibault Delavallée
parent 31f8af4598
commit 61ed99d56e
4 changed files with 30 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
+17
View File
@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': "Sale - SMS",
'summary': "Ease SMS integration with sales capabilities",
'description': "Ease SMS integration with sales capabilities",
'category': 'Hidden',
'version': '1.0',
'depends': ['sale', 'sms'],
'data': [
'security/ir.model.access.csv',
'security/security.xml',
],
'application': False,
'auto_install': True,
}
@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_sms_template_sale_manager,access.sms.template.sale.manager,sms.model_sms_template,sales_team.group_sale_manager,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_sms_template_sale_manager access.sms.template.sale.manager sms.model_sms_template sales_team.group_sale_manager 1 1 1 1
+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record model="ir.rule" id="ir_rule_sms_template_so_sale_manager">
<field name="name">SMS Template: sale manager CRUD on sale orders</field>
<field name="model_id" ref="sms.model_sms_template"/>
<field name="groups" eval="[(4, ref('sales_team.group_sale_manager'))]"/>
<field name="domain_force">[('model_id.model', 'in', ('sale.order', 'res.partner'))]</field>
</record>
</odoo>