10 Commits
17.5 ... 15.0

Author SHA1 Message Date
d24606a757 Toegevoegd: Disable google_analytics + Unpublish products in webshop 2025-05-13 14:37:21 +00:00
0f63eb4f78 Update testserver_o2b/models/init_test.py 2024-02-19 14:02:22 +00:00
7714f7f115 Update testserver_o2b/models/init_test.py
INSERT report.url made conditionally dependent on existence
2024-01-15 11:35:55 +00:00
4d934739bd Update testserver_o2b/models/init_test.py
Delete systemparameter web.base.url.freeze if excists
2024-01-11 12:30:09 +00:00
20486c72c4 Update testserver_o2b/models/init_test.py 2023-12-18 13:11:23 +00:00
80ffcfe1a9 Update testserver_o2b/models/init_test.py 2023-12-18 13:08:19 +00:00
1418cbfb44 Update testserver_o2b/models/init_test.py 2023-12-18 12:57:37 +00:00
67ddb4e1b0 Update testserver_o2b/models/init_test.py
Added report.url to ir_config_parameter
2023-12-12 12:26:48 +00:00
feb3e51dac Add description, icon 2023-11-29 16:05:06 +01:00
ad7321f661 Update file init_test.py 2023-11-24 17:48:15 +00:00
3 changed files with 32 additions and 4 deletions

View File

@@ -22,16 +22,26 @@ class IrLogging(models.Model):
DELETE FROM mail_mail;
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');
DELETE FROM account_online_link WHERE id > 0;
UPDATE delivery_carrier SET prod_environment = False WHERE id>0;
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 ('127.0.0.1','1025','Lokale mailcatcher','login','name','t');
INSERT INTO ir_mail_server(smtp_host,smtp_port,name,smtp_authentication,smtp_encryption,active) VALUES ('192.168.78.199','1025','Algemene mailcatcher','login','name','t');
UPDATE website SET google_analytics_key = NULL WHERE google_analytics_key IS NOT NULL;
UPDATE product_template SET is_published = FALSE WHERE is_published = TRUE;
""" %(db_id))
if self.env['ir.config_parameter'].search([('key','=','web.base.url.freeze')]):
self.env.cr.execute("""DELETE FROM ir_config_parameter WHERE key = 'web.base.url.freeze';""")
if not self.env['ir.config_parameter'].search([('key','=','report.url')]):
self.env.cr.execute("""INSERT INTO ir_config_parameter(key,value) VALUES ('report.url','http://127.0.0.1:8069');""")
model = self.env['ir.model'].search([('model','=','delivery.carrier')])
if model:
field = self.env['ir.model.fields'].search([('name','=','prod_environment'),('model_id','=',model.id)])
if field:
self.env.cr.execute("""UPDATE delivery_carrier SET prod_environment = False WHERE id>0;""")
model = self.env['ir.model'].search([('model','=','account.online.link')])
if model:
field = self.env['ir.model.fields'].search([('id','>',0),('model_id','=',model.id)])
if field:
self.env.cr.execute("""DELETE FROM account_online_link WHERE id > 0;""")
model = self.env['ir.model'].search([('model','=','payment.provider')])
if model:
field = self.env['ir.model.fields'].search([('name','=','state'),('model_id','=',model.id)])

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

View File

@@ -0,0 +1,18 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<body>
<div class="document" id="module-name">
<h1 class="title">Testservers</h1>
<p>
This module is ONLY for test environments In DC Open2Bizz
</p>
<p>
Module is developed by Open2Bizz. Bug reports: support@open2bizz.eu
</p>
<p>
<img src="https://www.open2bizz.tech/logo.png" style="max-height: 100px;">
</p>
</div>
</body>
</html>