17 Commits
14.0 ... 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
2829bafb31 Update testserver.sh 2023-10-05 11:48:10 +00:00
c9ee6f74bd Update testserver.sh 2023-10-05 11:07:02 +00:00
3ff5bdf970 Merge branch 'f20963' into '15.0'
Update init_test.py

See merge request open2bizz/testserver!3
2023-07-21 14:40:21 +00:00
c502e9392e Update init_test.py 2023-07-21 14:26:23 +00:00
4c701d97e9 Update init_test.py 2023-07-03 15:05:22 +00:00
7738f5b1bf Update init_test.py 2023-07-03 15:01:00 +00:00
b37439c4f0 Update init_test.py (ip-adres aangepast) 2023-02-07 14:07:15 +00:00
3 changed files with 42 additions and 2 deletions

View File

@@ -22,9 +22,31 @@ 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.25','1025','mailcatcher','login','name','t');
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)])
if field:
self.env.cr.execute("""UPDATE payment_provider SET state = 'disabled' WHERE id>0;""")
if self.env['ir.model'].search([('model','=','account.journal')]):
self.env.cr.execute("""UPDATE account_journal set bank_statements_source = 'undefined';""")
ip_ok = False

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>