Add Sefere Basla button and fix GPS cache issue

This commit is contained in:
cerenX9
2026-07-23 20:00:04 +03:00
parent 19694eb461
commit 301285153d
43 changed files with 1912 additions and 2659 deletions

18
scratch_fix_db.py Normal file
View File

@@ -0,0 +1,18 @@
import urllib.request
import json
url = "https://odoodev2.mymachconnect.com/mymach/api/ping"
data = json.dumps({}).encode('utf-8')
headers = {
'Content-Type': 'application/json',
'X-Odoo-Database': 'mymach-odoodev2-2026'
}
try:
req = urllib.request.Request(url, data=data, headers=headers, method='POST')
response = urllib.request.urlopen(req)
print("Response:", response.read().decode())
except urllib.error.HTTPError as e:
print("Error HTTP:", e.code, e.read().decode())
except Exception as e:
print("Error:", e)