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

import logging
from psycopg2.extensions import AsIs
from odoo import tools
_logger = logging.getLogger(__name__)
def migrate(cr, version):
drop_table_model_company_country(cr)
def drop_table_model_company_country(cr):
tablename = 'company_country_config_settings'
if tools.table_exists(cr, tablename):
_logger.info("Dropping table %s", tablename)
cr.execute("DROP TABLE IF EXISTS %s;", (AsIs(tablename),))