Health
92/100
good
-
Security22/251 minor finding
-
Activity25/25Last human commit 2 months ago
-
Required by20/252 modules depend on it
-
Maturity25/25In 4 Odoo series since 17.0
Heuristic over the facts below, not an audit · How it's computed
Required by
2
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.77 MB
Module directory on disk
Code analysis
0 migration notes
8 models
3 views
1 HTTP endpoint
Description
This module allows using Twilio as a provider for SMS messaging. The user has to create an account on twilio.com and top up their account to start sending SMS messages.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- test_mail_sms, test_mass_mailing
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
res_config_settings_view_form |
res.config.settings.view.form.inherit.sms.twilio | res.config.settings | form | Inherits sms.res_config_settings_view_form |
sms_sms_view_form |
sms.sms.view.form.inherit.twilio | sms.sms | form | Inherits sms.sms_tsms_view_form |
sms_twilio_account_manage_view_form |
sms.twilio.account.manage.view.form | sms.twilio.account.manage | form | New |
HTTP endpoints 1
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/sms_twilio/status/<string:uuid> |
SmsTwilioController.update_sms_status |
public | http | POST | csrf off sudo |
Models touched 8
New fields (1)
-
failure_typeSelectionselection_add=[('twilio_authentication', 'Authentication Error"'), ('twilio_callback', 'Incorrect callback URL'), ('twilio_from_missing', 'Missing From Number'), ('twilio_from_to', 'From / To identic'), ('twilio_wrong_credentials', 'Twilio Wrong Credentials')]
No public methods.
New fields (4)
-
sms_providerSelectiondefault='iap'selection=[('iap', 'Send via Odoo'), ('twilio', 'Send via Twilio')]string='SMS Provider' -
sms_twilio_account_sidChargroups='base.group_system' args: 'Account SID' -
sms_twilio_auth_tokenChargroups='base.group_system' args: 'Auth Token' -
sms_twilio_number_idsOne2many → sms.twilio.numberargs: 'sms.twilio.number', 'company_id', 'Numbers'
No public methods.
New fields (1)
-
sms_providerSelectionreadonly=Falserelated='company_id.sms_provider'required=True
-
action_open_sms_twilio_account_manage(self)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (3)
-
failure_typeSelectionselection_add=[('twilio_authentication', 'Authentication Error"'), ('twilio_callback', 'Incorrect callback URL'), ('twilio_from_missing', 'Missing From Number'), ('twilio_from_to', 'From / To identic'), ('twilio_wrong_credentials', 'Twilio Wrong Credentials')] -
record_company_idMany2one → res.companyondelete='set null' args: 'res.company', 'Company' -
sms_twilio_sidChardepends=['sms_tracker_id']related='sms_tracker_id.sms_twilio_sid'
-
create(self, vals_list)@api.model_create_multi
New fields (1)
-
sms_twilio_sidCharreadonly=Truestring='Twilio SMS SID'
No public methods.
New fields (6)
-
company_idMany2one → res.companycomodel_name='res.company'default=<expr>readonly=Truerequired=True -
sms_providerSelectionreadonly=Falserelated='company_id.sms_provider' -
sms_twilio_account_sidCharreadonly=Falserelated='company_id.sms_twilio_account_sid' -
sms_twilio_auth_tokenCharreadonly=Falserelated='company_id.sms_twilio_auth_token' -
sms_twilio_number_idsOne2manyreadonly=Falserelated='company_id.sms_twilio_number_ids' -
test_numberCharargs: 'Test Number'
-
action_reload_numbers(self)Fetch the available numbers from Twilio account -
action_save(self) -
action_send_test(self)
New fields (5)
-
company_idMany2one → res.companydefault=<expr>index='btree'ondelete='cascade'required=Truestring='Company' args: 'res.company' -
country_codeCharrelated='country_id.code'string='Country Code' -
country_idMany2one → res.countryrequired=Truestring='Country' args: 'res.country' -
numberCharrequired=Truestring='Twilio Number' -
sequenceIntegerdefault=1
No public methods.
Loading…
Loading…
Loading…