Hello
I have problem with synchronization in calendar module. I want to connect odoo calendar with google calendar but odoo show this problem:
HTTPError: HTTP Error 400: Bad Request
Traceback (most recent call last): File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 640, in _handle_exception File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 677, in dispatch File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 333, in _call_function File "C:\Program Files (x86)\Odoo 10.0\server\odoo\service\model.py", line 101, in wrapper File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 326, in checked_call File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 935, in __call__ File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 506, in response_wrap File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\google_calendar\controllers\main.py", line 43, in sync_data File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\google_calendar\models\google_calendar.py", line 587, in synchronize_events File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\google_calendar\models\google_calendar.py", line 620, in create_new_events File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\google_calendar\models\google_calendar.py", line 266, in create_an_event File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\google_account\models\google_service.py", line 200, in _do_request HTTPError: HTTP Error 400: Bad Request
In console window i have :
web.assets_common.js:3023 Server application error {"message":"Odoo Server Error","code":200,"data":{"debug":"Traceback (most recent call last):\n File \"C:\\Program Files (x86)\\Odoo 10.0\\server\\odoo\\http.py\", line 640, in _handle_exception\n File \"C:\\Program Files (x86)\\Odoo 10.0\\server\\odoo\\http.py\", line 677, in dispatch\n File \"C:\\Program Files (x86)\\Odoo 10.0\\server\\odoo\\http.py\", line 333, in _call_function\n File \"C:\\Program Files (x86)\\Odoo 10.0\\server\\odoo\\service\\model.py\", line 101, in wrapper\n File \"C:\\Program Files (x86)\\Odoo 10.0\\server\\odoo\\http.py\", line 326, in checked_call\n File \"C:\\Program Files (x86)\\Odoo 10.0\\server\\odoo\\http.py\", line 935, in __call__\n File \"C:\\Program Files (x86)\\Odoo 10.0\\server\\odoo\\http.py\", line 506, in response_wrap\n File \"C:\\Program Files (x86)\\Odoo 10.0\\server\\odoo\\addons\\google_calendar\\controllers\\main.py\", line 43, in sync_data\n File \"C:\\Program Files (x86)\\Odoo 10.0\\server\\odoo\\addons\\google_calendar\\models\\google_calendar.py\", line 587, in synchronize_events\n File \"C:\\Program Files (x86)\\Odoo 10.0\\server\\odoo\\addons\\google_calendar\\models\\google_calendar.py\", line 620, in create_new_events\n File \"C:\\Program Files (x86)\\Odoo 10.0\\server\\odoo\\addons\\google_calendar\\models\\google_calendar.py\", line 266, in create_an_event\n File \"C:\\Program Files (x86)\\Odoo 10.0\\server\\odoo\\addons\\google_account\\models\\google_service.py\", line 200, in _do_request\nHTTPError: HTTP Error 400: Bad Request\n","exception_type":"internal_error","message":"","name":"urllib2.HTTPError","arguments":[]}}
and in js file:
odoo.define('web.ajax',function(require){"use strict";var core=require('web.core');var utils=require('web.utils');var time=require('web.time');function genericJsonRpc(fct_name,params,fct){var data={jsonrpc:"2.0",method:fct_name,params:params,id:Math.floor(Math.random()*1000*1000*1000)};var xhr=fct(data);var result=xhr.pipe(function(result){core.bus.trigger('rpc:result',data,result);if(result.error!==undefined){if(result.error.data.arguments[0]!=="bus.Bus not available in test mode"){console.error("Server application error",JSON.stringify(result.error));}
I have tried to run on odoo runbot but there was also problem, the steps i made to sync it was :
1. on website https://console.developers.google.com/ i made everything like in instruction, i've got id and secret, add site to js auth and two records in URIs with /auth_oauth/signin and /google_account/authentication .
2. Add in odoo settings id and secrets, downloaded configured oAuth2.
Everything went well, i clicked sync with google button i calendar, and showed premission from google, i clicked allow and got back to odoo website, on this step i have token etc. and i want to click second time and this problem appeared.
Can someone help me ?
Thanks.
I have a similar problem, did you find a solution?
https://www.odoo.com/forum/help-1/question/error-syncing-to-google-calendar-usererror-object-has-no-attribute-code-131191