Update SQL script with dev settings
This commit is contained in:
parent
3a6bd84322
commit
e3ae7c2fff
@ -1,49 +1,31 @@
|
||||
-- Update Odoo database with new settings for the current development/testing
|
||||
-- install
|
||||
-- Update Odoo database with dev/testing settings
|
||||
|
||||
-- Change Electronic Invoice settings to prevent invoices from being sent
|
||||
|
||||
UPDATE "res_company" SET "ei_automatic_gen"=false,"ei_ack_folder"='/INVOICE/LAB/800216499/800216499_01/OUT/Acuse_Recibo/',"ei_dian_result_folder"='/INVOICE/LAB/800216499/800216499_01/OUT/Dian_result',"ei_write_folder"='/INVOICE/LAB/800216499/800216499_01/IN/',"ei_automatic_read"=false,"ei_error_folder"='/INVOICE/LAB/800216499/800216499_01/OUT/Error/',"ei_decision_folder"='/INVOICE/LAB/800216499/800216499_01/OUT/Aceptacion_y_rechazo/',"ei_server_type"='test',"xml_automatic_generation"=false,"sftp_url"='fecolab.cen.biz',"ei_voucher_folder"='/INVOICE/LAB/800216499/800216499_01/OUT/Comprobantes/' WHERE id IN (1);
|
||||
UPDATE "res_company" SET "einvoicing_enabled"=false,"ei_environment"='test',"edi_ds_ambient"='2' WHERE id = 1;
|
||||
|
||||
-- Deactivate Electronic Invoice periodic checks and downloads
|
||||
|
||||
UPDATE "ir_cron" SET "active"=false WHERE id IN (25);
|
||||
|
||||
UPDATE "ir_cron" SET "active"=false WHERE id IN (27);
|
||||
UPDATE "ir_cron" SET "active"=false WHERE id IN (25, 27);
|
||||
|
||||
-- Change Client ID for Google OAuth authentication
|
||||
|
||||
UPDATE "auth_oauth_provider" SET "client_id"='839348907645-51gmj31708h2vuts2sorqh842uhohoce.apps.googleusercontent.com' WHERE id IN (3);
|
||||
UPDATE "auth_oauth_provider" SET "client_id"='839348907645-51gmj31708h2vuts2sorqh842uhohoce.apps.googleusercontent.com' WHERE id = 3;
|
||||
{#
|
||||
-- Change password for user 'admin'
|
||||
|
||||
-- Change password for user 'sistemas'
|
||||
UPDATE "res_users" SET "password_crypt"='$pbkdf2-sha512$6400$tnYOAUCoNSbkHKMUAmAMgQ$UTwtQj2mGD1KnW5.S7dq0qxMw5M4tuWb2ckr8vB8k7MLrwG5aDyWDA6sLXawE..xrLDjvYrtxgIRvNf97knYVQ' WHERE id = 2;
|
||||
|
||||
UPDATE "res_users" SET "password_crypt"='$pbkdf2-sha512$6400$tnYOAUCoNSbkHKMUAmAMgQ$UTwtQj2mGD1KnW5.S7dq0qxMw5M4tuWb2ckr8vB8k7MLrwG5aDyWDA6sLXawE..xrLDjvYrtxgIRvNf97knYVQ' WHERE id IN (5);
|
||||
UPDATE "res_users" SET "password"='' WHERE id = 2;
|
||||
|
||||
UPDATE "res_users" SET "password"='' WHERE id = 5;
|
||||
UPDATE "res_users" SET "share"=false WHERE id = 2;
|
||||
#}
|
||||
-- Delete incoming and change outgoing mail servers
|
||||
|
||||
UPDATE "res_users" SET "share"=false WHERE id = 5;
|
||||
DELETE FROM fetchmail_server where id = 1;
|
||||
|
||||
-- Delete incoming and outgoing mail server settings
|
||||
|
||||
DELETE FROM wkf_instance where res_id=1 and res_type='fetchmail.server';
|
||||
|
||||
DELETE FROM fetchmail_server where id IN (1);
|
||||
|
||||
DELETE FROM wkf_instance where res_id=1 and res_type='ir.mail_server';
|
||||
|
||||
DELETE FROM ir_mail_server where id IN (1);
|
||||
|
||||
DELETE FROM wkf_instance where res_id=4 and res_type='ir.mail_server';
|
||||
|
||||
DELETE FROM ir_mail_server where id IN (4);
|
||||
|
||||
DELETE FROM wkf_instance where res_id=5 and res_type='ir.mail_server';
|
||||
|
||||
DELETE FROM ir_mail_server where id IN (5);
|
||||
|
||||
DELETE FROM ir_model_data where id IN (1576);
|
||||
UPDATE "ir_mail_server" SET "name"='Mailpit',"smtp_host"='mailtest.agofer.net',"active"=true where id = 1;
|
||||
|
||||
-- Change base URL
|
||||
|
||||
UPDATE "ir_config_parameter" SET "value"='https://{{ ansible_hostname }}.{{ dominio }}' WHERE id IN (5);
|
||||
|
||||
UPDATE "ir_config_parameter" SET "value"='https://{{ ansible_hostname }}.{{ dominio }}' WHERE id = 4;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user