Skip to content

Instantly share code, notes, and snippets.

@mohamad-supangat
Last active December 28, 2023 04:09
Show Gist options
  • Save mohamad-supangat/c132924e3e42483a9f9f35d6cea9a35c to your computer and use it in GitHub Desktop.
Save mohamad-supangat/c132924e3e42483a9f9f35d6cea9a35c to your computer and use it in GitHub Desktop.
Perintah Penting Odoo

Masuk PSQL odoo

docker exec -it -u root odoo-clone-jvm-odoo-1   psql -h db -U odoo -W restore

update default password to Donatelo

UPDATE "res_users" set "password" = '$pbkdf2-sha512$25000$IMSY8x7j/H.vlVJKCcF4jw$4Y9C8FdNwz9FdaJJpOAVhhrlKbYQGuQhnh7nUhZZndkb7R8ndgqPvmvO5pFTvznBtyOqYVZR0alxIFzXTgz9rg';

mengaktifkan login it

UPDATE "res_users" set "active"   = true WHERE "login" = '[email protected]';
UPDATE "res_partner" SET
"email" = NULL,
"phone" = NULL,
"mobile" = NULL,
"phone2" = NULL,
"mobile2" = NULL,
"email3" = NULL,
"email4" = NULL,
"email5" = NULL,
"phone3" = NULL,
"phone4" = NULL,
"phone5" = NULL,
"mobile3" = NULL,
"mobile4" = NULL,
"mobile5" = NULL;
UPDATE "res_users" SET
"display_density" = 'comfortable',
"tab_type" = 'horizontal_tabs',
"tab_configration" = 'open_tabs',
"base_menu" = 'base_menu';

# delete active ir_cron_schedule
DELETE FROM "ir_cron" WHERE active = true;

Masuk ke odoo sheel

docker exec -it -u root odoo-odoo-1 odoo shell -d JVM --db_host db --db_host db --db_password odoo --db_user odoo
self.env['ir.module.module'].search([('name', 'like', '%allure_backend_theme%')], limit=1).button_immediate_uninstall()
self.env['ir.module.module'].search([('name', 'like', '%allure_backend_theme%')], limit=1).button_immediate_install()
self.env['ir.module.module'].search([('name', 'like', '%telegram%')], limit=1).button_immediate_uninstall()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment