|
|
|
|
@@ -23,10 +23,8 @@ class IrLogging(models.Model):
|
|
|
|
|
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 ('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;
|
|
|
|
|
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';""")
|
|
|
|
|
@@ -42,11 +40,11 @@ class IrLogging(models.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')])
|
|
|
|
|
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_provider SET state = 'disabled' WHERE id>0;""")
|
|
|
|
|
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
|
|
|
|
|
|