[FIX] google_spreadsheet: domain encoding
Steps to reproduce: - Go to Contacts - type "управління" in the filter - click on add to google spreadsheet -> error Solution: - encode the domain in utf-8 OPW-2701434 closes odoo/odoo#82404 X-original-commit: 077e554703b6d8a71c81fbf6783228d04e77d96f Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by: yosa-odoo <yosa@odoo.com>
This commit is contained in:
@@ -75,7 +75,7 @@ class GoogleDrive(models.Model):
|
||||
try:
|
||||
req = requests.post(
|
||||
'https://spreadsheets.google.com/feeds/cells/%s/od6/private/full/batch?%s' % (spreadsheet_key, werkzeug.urls.url_encode({'v': 3, 'access_token': access_token})),
|
||||
data=request,
|
||||
data=request.encode('utf-8'),
|
||||
headers={'content-type': 'application/atom+xml', 'If-Match': '*'},
|
||||
timeout=TIMEOUT,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user