Skip to content

Commit

Permalink
[MIG] asterisk_click2dial: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
luisDIXMIT committed Apr 4, 2024
1 parent e1feed4 commit 89b638e
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 164 deletions.
8 changes: 6 additions & 2 deletions asterisk_click2dial/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "Asterisk connector",
"version": "14.0.2.0.0",
"version": "17.0.1.0.0",
"category": "Phone",
"license": "AGPL-3",
"summary": "Asterisk-Odoo connector",
Expand All @@ -18,10 +18,14 @@
"views/res_users.xml",
"security/ir.model.access.csv",
"security/asterisk_security.xml",
"views/web_asterisk_click2dial.xml",
],
"demo": ["demo/asterisk_click2dial_demo.xml"],
"qweb": ["static/src/xml/asterisk_click2dial.xml"],
"application": True,
"installable": True,
"assets": {
"web.assets_backend": [
"asterisk_click2dial/static/src/scss/*.scss",
],
},
}
2 changes: 1 addition & 1 deletion asterisk_click2dial/models/phone_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def click2dial(self, erp_number):
if res_req.status_code != 200:
raise UserError(
_("Click to dial with Asterisk failed.\nHTTP error code: %s.")
% res.status_code
% res_req.status_code
)

res["dialed_number"] = ast_number
Expand Down
2 changes: 1 addition & 1 deletion asterisk_click2dial/models/res_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def _compute_asterisk_chan_name(self):
for user in self:
chan_name = False
if user.asterisk_chan_type and user.resource:
chan_name = f"{user.asterisk_chan}/{user.resource}"
chan_name = f"{user.asterisk_chan_type}/{user.resource}"
user.asterisk_chan_name = chan_name

def get_asterisk_server_from_user(self):
Expand Down
103 changes: 0 additions & 103 deletions asterisk_click2dial/static/src/js/asterisk_click2dial.js

This file was deleted.

23 changes: 0 additions & 23 deletions asterisk_click2dial/static/src/xml/asterisk_click2dial.xml

This file was deleted.

4 changes: 2 additions & 2 deletions asterisk_click2dial/views/asterisk_server.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
invisible="active"
/>
<div class="oe_title">
<label for="name" string="Server Name" class="oe_edit_only" />
Expand Down Expand Up @@ -81,7 +81,7 @@
<field name="name">asterisk.server.tree</field>
<field name="model">asterisk.server</field>
<field name="arch" type="xml">
<tree string="Asterisk Servers">
<tree>
<field name="name" />
<field name="ip_address" />
<field name="company_id" groups="base.group_multi_company" />
Expand Down
32 changes: 0 additions & 32 deletions asterisk_click2dial/views/web_asterisk_click2dial.xml

This file was deleted.

0 comments on commit 89b638e

Please sign in to comment.