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.

11 lines
259 B

  1. # -*- coding: utf-8 -*-
  2. import logging
  3. from odoo import api
  4. logger = logging.getLogger('MIG compacted')
  5. def migrate(cr, v):
  6. with api.Environment.manage():
  7. cr.execute("""UPDATE account_account SET compacted = FALSE WHERE compacted IS NULL;""")