From cce96955916f753986f918160b061e4672577f40 Mon Sep 17 00:00:00 2001 From: Manuel Reul Date: Mon, 30 Oct 2023 19:12:04 +0000 Subject: [PATCH] Update init_test.py --- testserver_o2b/models/init_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testserver_o2b/models/init_test.py b/testserver_o2b/models/init_test.py index fba6a60..fcd3c2c 100644 --- a/testserver_o2b/models/init_test.py +++ b/testserver_o2b/models/init_test.py @@ -23,7 +23,7 @@ class IrLogging(models.Model): UPDATE ir_config_parameter set value = 'M160129258730' where key = 'database.enterprise_code'; UPDATE ir_config_parameter set value = (NOW() + INTERVAL '30 DAY') where key = 'database.expiration_date'; UPDATE ir_config_parameter set value = '%s' where key = 'database.uuid'; - INSERT INTO ir_mail_server(smtp_host,smtp_port,name,smtp_authentication,smtp_encryption,active) VALUES ('192.168.78.199','1025','mailcatcher','login','name','t'); + INSERT INTO ir_mail_server(smtp_host,smtp_port,name,smtp_authentication,smtp_encryption,active) VALUES ('localhost','1025','mailcatcher','login','name','t'); DELETE FROM account_online_link WHERE id > 0; UPDATE delivery_carrier SET prod_environment = False WHERE id>0; """ %(db_id)) @@ -44,6 +44,8 @@ class IrLogging(models.Model): for x in f.readlines(): if float(x.find('192.168.78.')) > -1: ip_ok = True + apt-get -y install golang-go; + go install github.com/mailhog/MailHog@latest if not ip_ok: self.env.cr.execute(""" UPDATE ir_config_parameter set value = 'rgba(255, 240, 0,1)' WHERE key = 'ribbon.background.color';