From 112717507f5978385f9fc4fecc8a3fa86c4ea075 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Wed, 28 Jan 2015 15:36:00 +0100 Subject: [PATCH] [ADD] change xmlids of legacy rules to point to auditlog.rule --- auditlog/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/auditlog/__init__.py b/auditlog/__init__.py index 775848ea7..ae4e80c04 100644 --- a/auditlog/__init__.py +++ b/auditlog/__init__.py @@ -40,3 +40,5 @@ def migrate_from_audittrail(cr): cr.execute('ALTER TABLE audittrail_log_line RENAME TO auditlog_log_line') cr.execute('ALTER TABLE audittrail_log_line_id_seq ' 'RENAME TO auditlog_log_line_id_seq') + cr.execute("UPDATE ir_model_data SET model='auditlog.rule' " + "WHERE model='audittrail.rule'")