Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d24606a757 | |||
| 0f63eb4f78 | |||
| 7714f7f115 | |||
| 4d934739bd | |||
| 20486c72c4 | |||
| 80ffcfe1a9 | |||
| 1418cbfb44 | |||
| 67ddb4e1b0 | |||
| feb3e51dac | |||
| ad7321f661 |
@@ -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)])
|
||||
|
||||
BIN
testserver_o2b/static/description/icon.png
Normal file
BIN
testserver_o2b/static/description/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 89 KiB |
18
testserver_o2b/static/description/index.html
Normal file
18
testserver_o2b/static/description/index.html
Normal 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>
|
||||
Reference in New Issue
Block a user