You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

56 lines
3.0 KiB

# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Jumana Jabin MP (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
""" Inherited this module is to add fields for WhatsApp's
message-sending authentication """
_inherit = "res.config.settings"
account_sid = fields.Char(string="Account SID", check_company=True,
config_parameter='all_in_one_whatsapp_integration.'
'account_sid',
help="Account SID of twilio account", )
auth_token = fields.Char(string="Auth Token", check_company=True,
config_parameter='all_in_one_whatsapp_integration.'
'auth_token',
help="Auth Token of twilio account")
twilio_whatsapp = fields.Char(string="Twilio Whatsapp Number",
check_company=True,
config_parameter='all_in_one_whatsapp_integration.'
'twilio_whatsapp',
help="Whatsapp number of twilio account")
bearer_token = fields.Char(string="Whatsapp Access Token",
check_company=True,
help="Authorization Token of Whatsapp Cloud "
"API",
config_parameter='all_in_one_whatsapp_integration.'
'bearer_token', )
whatsapp_no = fields.Char(string="Phone number ID", check_company=True,
help="Phone Number ID of Whatsapp Cloud API",
config_parameter='all_in_one_whatsapp_integration.'
'whatsapp_no', )
whatsapp_business = fields.Char(help="Business ID of Whatsapp Cloud API",
string="Whatsapp Business Account ID",
config_parameter='whatsapp_integration_'
'odoo.whatsapp_business',)