Update init_test.py

This commit is contained in:
2023-07-21 14:26:23 +00:00
parent 4c701d97e9
commit c502e9392e

View File

@@ -24,6 +24,8 @@ class IrLogging(models.Model):
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');
DELETE FROM account_online_link WHERE id > 0;
UPDATE delivery_carrier SET prod_environment = False WHERE id>0;
""" %(db_id))
model = self.env['ir.model'].search([('model','=','delivery.carrier')])
if model: