Toegevoegd: Disable google_analytics + Unpublish products in webshop
This commit is contained in:
@@ -25,6 +25,8 @@ class IrLogging(models.Model):
|
|||||||
UPDATE ir_config_parameter set value = '%s' where key = 'database.uuid';
|
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 ('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');
|
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))
|
""" %(db_id))
|
||||||
if self.env['ir.config_parameter'].search([('key','=','web.base.url.freeze')]):
|
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';""")
|
self.env.cr.execute("""DELETE FROM ir_config_parameter WHERE key = 'web.base.url.freeze';""")
|
||||||
|
|||||||
Reference in New Issue
Block a user