Browse Source

Merge pull request #3 from hbrunn/8.0-auditlog

[ADD] change xmlids of legacy rules to point to auditlog.rule
pull/119/head
Sébastien Alix 10 years ago
parent
commit
7a9b09ae12
  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 RENAME TO auditlog_log_line')
cr.execute('ALTER TABLE audittrail_log_line_id_seq ' cr.execute('ALTER TABLE audittrail_log_line_id_seq '
'RENAME TO auditlog_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