Browse Source

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

pull/1040/head
Holger Brunn 10 years ago
committed by Enric Tobella
parent
commit
62d5b1e34d
No known key found for this signature in database GPG Key ID: 1A2546A1B7BA2451
  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