Browse Source

[ADD] change xmlids of legacy rules to point to auditlog.rule

pull/1556/head
Holger Brunn 10 years ago
committed by sebalix
parent
commit
112717507f
  1. 2
      auditlog/__init__.py

2
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'")
Loading…
Cancel
Save