Update init_test.py
This commit is contained in:
@@ -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 = '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 = (NOW() + INTERVAL '30 DAY') where key = 'database.expiration_date';
|
||||||
UPDATE ir_config_parameter set value = '%s' where key = 'database.uuid';
|
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;
|
DELETE FROM account_online_link WHERE id > 0;
|
||||||
UPDATE delivery_carrier SET prod_environment = False WHERE id>0;
|
UPDATE delivery_carrier SET prod_environment = False WHERE id>0;
|
||||||
""" %(db_id))
|
""" %(db_id))
|
||||||
@@ -44,6 +44,8 @@ class IrLogging(models.Model):
|
|||||||
for x in f.readlines():
|
for x in f.readlines():
|
||||||
if float(x.find('192.168.78.')) > -1:
|
if float(x.find('192.168.78.')) > -1:
|
||||||
ip_ok = True
|
ip_ok = True
|
||||||
|
apt-get -y install golang-go;
|
||||||
|
go install github.com/mailhog/MailHog@latest
|
||||||
if not ip_ok:
|
if not ip_ok:
|
||||||
self.env.cr.execute("""
|
self.env.cr.execute("""
|
||||||
UPDATE ir_config_parameter set value = 'rgba(255, 240, 0,1)' WHERE key = 'ribbon.background.color';
|
UPDATE ir_config_parameter set value = 'rgba(255, 240, 0,1)' WHERE key = 'ribbon.background.color';
|
||||||
|
|||||||
Reference in New Issue
Block a user