diff --git a/cybrosys_support_client/__manifest__.py b/cybrosys_support_client/__manifest__.py index 2c263e57b..195b6bbd0 100644 --- a/cybrosys_support_client/__manifest__.py +++ b/cybrosys_support_client/__manifest__.py @@ -24,7 +24,7 @@ 'name': "Odoo Support Request", 'category': 'Productivity', 'summary': 'Create Odoo Support Request To Cybrosys', - 'version': '14.0.1.0.0', + 'version': '14.0.1.0.1', 'description': """Odoo Support""", 'author': 'Cybrosys Techno Solutions', 'company': 'Cybrosys Techno Solutions', diff --git a/cybrosys_support_client/doc/RELEASE_NOTES.md b/cybrosys_support_client/doc/RELEASE_NOTES.md index 4b9921e6e..c61c66e99 100755 --- a/cybrosys_support_client/doc/RELEASE_NOTES.md +++ b/cybrosys_support_client/doc/RELEASE_NOTES.md @@ -6,3 +6,9 @@ ##### Initial Commit + +#### 16.09.2021 +#### Version 14.0.1.0.1 + +##### https added in url + diff --git a/cybrosys_support_client/wizards/wizards.py b/cybrosys_support_client/wizards/wizards.py index 9b6f24540..726b874bf 100644 --- a/cybrosys_support_client/wizards/wizards.py +++ b/cybrosys_support_client/wizards/wizards.py @@ -59,7 +59,6 @@ class SystrayIcon(models.TransientModel): return url_open def confirm_button(self): - body = { 'name': self.name, 'email': self.email, @@ -67,9 +66,10 @@ class SystrayIcon(models.TransientModel): 't_type': self.t_type, 'attachments': [(str(rec.datas), rec.name) for rec in self.attachment_ids], } - - response = requests.post('http://api.cybrosys.us/help/request', data=json.dumps(body), - headers={"content-type": "Application/json"}) + print(body) + headers = {'Content-type': 'application/json', 'Accept': 'text/plain'} + response = requests.post(url='https://api.cybrosys.us/help/request', json=body, + headers=headers, data=json.dumps(body)) if response.status_code == 200: return {