You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
299 B

  1. # Copyright 2019 Eficent <http://www.eficent.com>
  2. # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
  3. def migrate(cr, version):
  4. if not version:
  5. return
  6. cr.execute("""
  7. UPDATE mail_activity SET
  8. active = False
  9. WHERE done=True;
  10. """)