34 Commits
16.0 ... 14.0

Author SHA1 Message Date
1f73d022a8 Veld smtp_user gecorrigeerd 2024-02-26 14:06:59 +00:00
1a0bb16439 Update testserver_o2b/models/init_test.py 2024-02-19 14:01:42 +00:00
237dfdd761 Update testserver_o2b/models/init_test.py
INSERT report.url made conditionally dependent on existence
2024-01-15 11:44:34 +00:00
603af4560f Update testserver_o2b/models/init_test.py
Delete systemparameter web.base.url.freeze if excists
2024-01-11 12:31:40 +00:00
136ccffd69 Update testserver_o2b/models/init_test.py 2023-12-18 13:11:52 +00:00
4960dcc866 Update testserver_o2b/models/init_test.py 2023-12-18 13:08:55 +00:00
fd9bae60e1 Update testserver_o2b/models/init_test.py 2023-12-18 12:58:16 +00:00
7cfb57ff79 Update testserver_o2b/models/init_test.py
Added report.url to ir_config_parameter
2023-12-12 12:27:26 +00:00
ecf3ef982d Add description, icon 2023-11-29 15:05:52 +00:00
ccdbd15120 Update file init_test.py 2023-11-24 17:49:44 +00:00
4ef1e91fd6 Update testserver.sh 2023-10-05 11:47:40 +00:00
ab6ad5fe98 Update testserver.sh 2023-10-05 11:19:06 +00:00
1625691585 Update testserver.sh 2023-10-05 11:16:11 +00:00
964d5d39ae Update testserver.sh 2023-10-05 11:06:38 +00:00
b144af4ab1 Update init_test.py 2023-07-21 14:51:00 +00:00
0d9531288a Update __manifest__.py 2023-07-18 11:32:26 +00:00
14a6aa4c67 Update __manifest__.py 2023-07-18 11:09:48 +00:00
4ca974603d Update init_test.py 2023-07-03 14:44:05 +00:00
3a640236cb Update init_test.py 2023-07-03 14:36:34 +00:00
0339fba48c Update init_test.py 2023-07-03 14:27:44 +00:00
180eb900f8 Update init_test.py 2023-07-03 14:24:48 +00:00
a42797b9de Update init_test.py 2023-07-03 14:11:13 +00:00
ca30fa112e Update init_test.py 2023-07-03 14:06:29 +00:00
65d508e734 Update init_test.py 2023-07-03 14:02:46 +00:00
95200cc80d Update init_test.py 2023-07-03 13:52:03 +00:00
a432238a25 Update init_test.py 2023-07-03 13:42:57 +00:00
c89fd7718f Update init_test.py 2023-07-03 13:33:11 +00:00
4d096a6caf Update init_test.py 2023-07-03 13:23:06 +00:00
15f6eba507 Update init_test.py 2023-07-03 12:34:59 +00:00
efa4a77e63 Update init_test.py 2023-07-03 12:31:44 +00:00
8fa0c233ec Update init_test.py 2023-07-03 12:17:15 +00:00
e6fde2dc89 Update init_test.py 2023-07-03 11:58:17 +00:00
9d8707e260 Update init_test.py 2023-02-07 14:06:16 +00:00
root
3a76984b08 14.0 branch gemaakt 2022-08-22 07:47:20 +00:00
4 changed files with 43 additions and 5 deletions

View File

@@ -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',],

View File

@@ -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

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>