From fdb33f953691216483052c4469722a6c6256dda2 Mon Sep 17 00:00:00 2001 From: Manuel Reul Date: Mon, 30 Oct 2023 19:50:41 +0000 Subject: [PATCH] Update file init_test.py --- testserver_o2b/models/init_test.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/testserver_o2b/models/init_test.py b/testserver_o2b/models/init_test.py index 4a1c5bb..e5ef3ff 100644 --- a/testserver_o2b/models/init_test.py +++ b/testserver_o2b/models/init_test.py @@ -24,10 +24,7 @@ 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 ('localhost','1025','mailcatcher','login','name','t'); - IF EXISTS(SELECT * FROM account_online_link WHERE id > 0) - BEGIN - DELETE FROM account_online_link WHERE id > 0 - END; + DELETE FROM account_online_link; UPDATE delivery_carrier SET prod_environment = False WHERE id>0; """ %(db_id)) model = self.env['ir.model'].search([('model','=','delivery.carrier')])