Skip to content

Commit

Permalink
[MIG] base_phone_popup
Browse files Browse the repository at this point in the history
  • Loading branch information
murtuzasaleh committed Feb 13, 2024
1 parent e71754f commit 88c1e4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 43 deletions.
6 changes: 2 additions & 4 deletions base_phone_popup/models/phone_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def incall_notify_by_login(self, number, login_list):
res = self.get_record_from_phone_number(number)
users = self.env["res.users"].search([("login", "in", login_list)])
logger.info(
"Notify incoming call from number %s to user IDs %s" % (number, users.ids)
f"Notify incoming call from number {number} to user IDs {users.ids}"
)
action = self._prepare_incall_pop_action(res, number)
action = clean_action(action)
Expand All @@ -62,9 +62,7 @@ def incall_notify_by_login(self, number, login_list):
}

self.sudo().env["bus.bus"].sendone(channel, bus_message)
logger.debug(
"This action has been sent to user ID %d: %s" % (user.id, action)
)
logger.debug(f"This action has been sent to user ID {user.id} {action}")
if res:
callerid = res[2]
else:
Expand Down
39 changes: 0 additions & 39 deletions base_phone_popup/views/res_users.xml

This file was deleted.

0 comments on commit 88c1e4a

Please sign in to comment.