Skip to content

Commit

Permalink
[MIG] sms_twilio: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPForgeFlow committed Dec 21, 2023
1 parent 9452649 commit ea6aeb9
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion sms_twilio/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SMS Twilio
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:fd33cd14c1faf25aa72cb5b0357c5c6c7b6a1e843ca3238491051206e7215272
!! source digest: sha256:cc5f2565e215b4c57999c1f487898b779b23d26031928af48e54c7ae11bfbe1e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
2 changes: 1 addition & 1 deletion sms_twilio/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "SMS Twilio",
"summary": "Send sms using Twilio API",
"version": "14.0.1.0.0",
"version": "16.0.1.0.0",
"category": "SMS",
"website": "https://github.com/OCA/connector-telephony",
"author": "Akretion, Odoo Community Association (OCA)",
Expand Down
2 changes: 1 addition & 1 deletion sms_twilio/models/iap_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class IapAccount(models.Model):
twilio_test_account_sid = fields.Char(string="Twilio TEST Account SID")
twilio_test_auth_token = fields.Char(string="Twilio TEST Auth Token")
twilio_account_sid = fields.Char(string="Twilio Account SID")
twilio_auth_token = fields.Char(string="Twilio Auth Token")
twilio_auth_token = fields.Char()
twilio_number_id = fields.Many2one("twilio.phone.number", string="Twilio Number")

twilio_balance_account = fields.Char(
Expand Down
2 changes: 1 addition & 1 deletion sms_twilio/models/sms_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _send_sms_with_twilio(self, number, message, sms_id):
client.messages.create(to=number, from_=from_number, body=message)
except TwilioRestException as e:
self.env["sms.sms"].browse(sms_id).error_detail = e.msg
raise UserError(e.msg)
raise UserError(e.msg) from e
return "success"

@api.model
Expand Down
2 changes: 1 addition & 1 deletion sms_twilio/models/twilio_numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TwilioPhoneNumber(models.Model):
_description = "Twilio Phone Number"

name = fields.Char(string="Friendly Name")
phone_number = fields.Char(string="Phone Number")
phone_number = fields.Char()
has_sms_enabled = fields.Boolean(string="SMS Enabled")
sid = fields.Char(string="SID")

Expand Down
2 changes: 1 addition & 1 deletion sms_twilio/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">SMS Twilio</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:fd33cd14c1faf25aa72cb5b0357c5c6c7b6a1e843ca3238491051206e7215272
!! source digest: sha256:cc5f2565e215b4c57999c1f487898b779b23d26031928af48e54c7ae11bfbe1e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/connector-telephony/tree/16.0/sms_twilio"><img alt="OCA/connector-telephony" src="https://img.shields.io/badge/github-OCA%2Fconnector--telephony-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/connector-telephony-16-0/connector-telephony-16-0-sms_twilio"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/connector-telephony&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>Implementation of <strong>Twilio API</strong> for sending sms.
Expand Down
2 changes: 1 addition & 1 deletion sms_twilio/views/sms_sms_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<field name="model">sms.sms</field>
<field name="inherit_id" ref="sms.sms_tsms_view_form" />
<field name="arch" type="xml">
<field name="error_code" position="after">
<field name="failure_type" position="after">
<field name="error_detail" />
</field>
</field>
Expand Down

0 comments on commit ea6aeb9

Please sign in to comment.