Skip to content

Commit

Permalink
[MIG] 14.0 ovh_sms_http
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierrick Brun authored and sebastienbeau committed Apr 6, 2022
1 parent 2b98f15 commit 256ea57
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions setup/sms_ovh_http/odoo/addons/sms_ovh_http
6 changes: 6 additions & 0 deletions setup/sms_ovh_http/setup.py
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
2 changes: 1 addition & 1 deletion sms_ovh_http/__manifest__.py
Expand Up @@ -5,7 +5,7 @@
{
"name": "Sms OVH HTTP",
"summary": "Send sms using ovh http API",
"version": "12.0.1.0.0",
"version": "14.0.1.0.0",
"category": "SMS",
"website": "https://github.com/OCA/connector-telephony",
"author": "Akretion, Odoo Community Association (OCA)",
Expand Down
5 changes: 4 additions & 1 deletion sms_ovh_http/models/iap_account.py
Expand Up @@ -8,7 +8,10 @@
class IapAccount(models.Model):
_inherit = "iap.account"

provider = fields.Selection(selection_add=[("sms_ovh_http", "SMS OVH http")])
provider = fields.Selection(
selection_add=[("sms_ovh_http", "SMS OVH http")],
ondelete={"sms_ovh_http": "cascade"},
)
sms_ovh_http_account = fields.Char(string="Account")
sms_ovh_http_login = fields.Char(string="Login")
sms_ovh_http_password = fields.Char(string="Password")
Expand Down
1 change: 1 addition & 0 deletions test-requirements.txt
@@ -0,0 +1 @@
requests_mock

0 comments on commit 256ea57

Please sign in to comment.