Check op account_journal, anders werkt query niet
This commit is contained in:
@@ -23,9 +23,10 @@ class IrLogging(models.Model):
|
|||||||
UPDATE ir_config_parameter set value = 'M160129258730' where key = 'database.enterprise_code';
|
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 = (NOW() + INTERVAL '30 DAY') where key = 'database.expiration_date';
|
||||||
UPDATE ir_config_parameter set value = '%s' where key = 'database.uuid';
|
UPDATE ir_config_parameter set value = '%s' where key = 'database.uuid';
|
||||||
UPDATE account_journal set bank_statements_source = 'undefined';
|
|
||||||
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');
|
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');
|
||||||
""" %(db_id))
|
""" %(db_id))
|
||||||
|
if self.env['ir.model'].search([('model','=','account.journal')]):
|
||||||
|
self.env.cr.execute("""UPDATE account_journal set bank_statements_source = 'undefined';""")
|
||||||
ip_ok = False
|
ip_ok = False
|
||||||
with os.popen("ip a") as f:
|
with os.popen("ip a") as f:
|
||||||
for x in f.readlines():
|
for x in f.readlines():
|
||||||
|
|||||||
Reference in New Issue
Block a user