Update init_test.py

This commit is contained in:
2023-10-30 19:12:04 +00:00
parent 2829bafb31
commit cce9695591

View File

@@ -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';