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.

18 lines
441 B

  1. import logging
  2. from psycopg2.extensions import AsIs
  3. from odoo import tools
  4. _logger = logging.getLogger(__name__)
  5. def migrate(cr, version):
  6. drop_table_model_company_country(cr)
  7. def drop_table_model_company_country(cr):
  8. tablename = 'company_country_config_settings'
  9. if tools.table_exists(cr, tablename):
  10. _logger.info("Dropping table %s", tablename)
  11. cr.execute("DROP TABLE IF EXISTS %s;", (AsIs(tablename),))