Browse Source

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

pull/119/head
Holger Brunn 10 years ago
parent
commit
955f05a74d
  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