Odoo Pull
Pull the latest custom addons from git as the odoo user.
cd /opt/odoo/custom-addons && sudo -Hu odoo git pull
🔒 Needs a one-time code emailed to your 2segypt.com mailbox.
Pull the latest custom addons from git as the odoo user.
cd /opt/odoo/custom-addons && sudo -Hu odoo git pull
🔒 Needs a one-time code emailed to your 2segypt.com mailbox.
Restart the Odoo service. Workers take about 90 seconds to finish loading; users are disconnected.
sudo systemctl restart odoo
Sends SIGTERM to every process matching odoo —
including the Postgres backends opened by the odoo db user. systemd
(Restart=on-failure) brings the service back within ~5s.
sudo pkill -f odoo
Only PIDs owned by the odoo user can be
signalled; anything else is refused and logged.
Switches max_cron_threads between 2 and 0 in
/etc/odoo/odoo.conf and takes a timestamped backup.
The file only — Odoo keeps the old value until it is restarted.
A read-only htop rendered in the browser,
refreshed every 2 seconds. No keystrokes are sent to it.
Ready. Pick an action above — every run is written to its own log file.
| Time (Cairo) | User | Action | Result | Duration | IP |
|---|
—
Goes live on its own when you open this tab. Click the
terminal, then use ↑ ↓ PgUp PgDn Home End to move through the process
list, < > to change the sort column, I to invert it,
P/M/T to sort by CPU/memory/time, t for tree view,
H/K to toggle user/kernel threads.
Killing and renicing are disabled — htop runs with
--readonly and only the keys above are forwarded.
Leaving the page stops the session automatically.
SELECT (or WITH … SELECT) only, one statement at a
time — plus UPDATE pos_order_data … WHERE …, the single writable table
(a WHERE clause is required, and id cannot be changed).
Runs against live_2026 with a 15 second time limit and at most 1000 rows
returned.
Not readable: res_users, res_users_apikeys,
ir_config_parameter, hr_version,
hr_payslip, hr_payslip_line.
Every query is logged to sql.log. Ctrl+Enter runs.