Compare commits
34 Commits
mailcatche
...
14.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 1f73d022a8 | |||
| 1a0bb16439 | |||
| 237dfdd761 | |||
| 603af4560f | |||
| 136ccffd69 | |||
| 4960dcc866 | |||
| fd9bae60e1 | |||
| 7cfb57ff79 | |||
| ecf3ef982d | |||
| ccdbd15120 | |||
| 4ef1e91fd6 | |||
| ab6ad5fe98 | |||
| 1625691585 | |||
| 964d5d39ae | |||
| b144af4ab1 | |||
| 0d9531288a | |||
| 14a6aa4c67 | |||
| 4ca974603d | |||
| 3a640236cb | |||
| 0339fba48c | |||
| 180eb900f8 | |||
| a42797b9de | |||
| ca30fa112e | |||
| 65d508e734 | |||
| 95200cc80d | |||
| a432238a25 | |||
| c89fd7718f | |||
| 4d096a6caf | |||
| 15f6eba507 | |||
| efa4a77e63 | |||
| 8fa0c233ec | |||
| e6fde2dc89 | |||
| 9d8707e260 | |||
|
|
3a76984b08 |
@@ -7,11 +7,11 @@
|
||||
subtitle on modules listing or apps.openerp.com""",
|
||||
|
||||
'description': """
|
||||
Long description of module's purpose
|
||||
Alter Live settings to test settings
|
||||
""",
|
||||
|
||||
'author': "My Company",
|
||||
'website': "http://www.yourcompany.com",
|
||||
'author': "Open2bizz",
|
||||
'website': "https://www.open2bizz.tech",
|
||||
'category': 'Uncategorized',
|
||||
'version': '0.1',
|
||||
'depends': ['web_environment_ribbon', 'mail','base',],
|
||||
|
||||
@@ -22,9 +22,29 @@ 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_user,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_user,smtp_encryption,active) VALUES ('192.168.78.199','1025','Algemene mailcatcher','login','name','t');
|
||||
""" %(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.acquirer')])
|
||||
if model:
|
||||
field = self.env['ir.model.fields'].search([('name','=','state'),('model_id','=',model.id)])
|
||||
if field:
|
||||
self.env.cr.execute("""UPDATE payment_acquirer 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
|
||||
|
||||
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