Closed sergioeix closed 2 years ago
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.
Module
base_phone
Describe the bug
on incoming call when you click on the phone icon of the top bar an issue with this function get_record_from_phone_number raise an error
Odoo Server Error Traceback (most recent call last): File "/opt/odoo13/odoo/odoo/http.py", line 625, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo13/odoo/odoo/http.py", line 311, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/opt/odoo13/odoo/odoo/tools/pycompat.py", line 14, in reraise raise value File "/opt/odoo13/odoo/odoo/http.py", line 670, in dispatch result = self._call_function(self.params) File "/opt/odoo13/odoo/odoo/http.py", line 351, in _call_function return checked_call(self.db, *args, *kwargs) File "/opt/odoo13/odoo/odoo/service/model.py", line 94, in wrapper return f(dbname, args, kwargs) File "/opt/odoo13/odoo/odoo/http.py", line 340, in checked_call result = self.endpoint(*a, kw) File "/opt/odoo13/odoo/odoo/http.py", line 916, in call return self.method(*args, *kw) File "/opt/odoo13/odoo/odoo/http.py", line 516, in response_wrap response = f(args, kw) File "/opt/odoo13/connector-telephony/asterisk_click2dial/controller.py", line 16, in get_record_from_my_channel res = http.request.env['asterisk.server'].get_record_from_my_channel() File "/opt/odoo13/connector-telephony/asterisk_click2dial/models/asterisk_server.py", line 230, in get_record_from_my_channel record = self.env['phone.common'].get_record_from_phone_number( File "/opt/odoo13/odoo-oca/base_phone/models/phone_common.py", line 78, in get_record_from_phone_number self._cr.execute(sql, tuple(sql_args)) File "/opt/odoo13/odoo/odoo/sql_db.py", line 173, in wrapper return f(self, *args, **kwargs) File "/opt/odoo13/odoo/odoo/sql_db.py", line 250, in execute res = self._obj.execute(query, params) TypeError: argument 1 must be a string or unicode object: got tuple instead
@alexis-via and @sebastienbeau can you help pls