[FIX] Use the cursor.drop_view_if_exists

lp bug: https://launchpad.net/bugs/309331 fixed

bzr revid: stephane@tinyerp.com-20081218160709-bg3wqmp54df2chhv
This commit is contained in:
Stephane Wirtel
2008-12-18 17:07:09 +01:00
parent 4043a46f65
commit 643d5f87bd
@@ -86,7 +86,7 @@ class report_crm_case_section_stage(osv.osv):
_order = 'stage_id, section_id'
def init(self, cr):
drop_view_if_exists(cr, "report_crm_case_section_stage")
cr.drop_view_if_exists("report_crm_case_section_stage")
cr.execute("""
create view report_crm_case_section_stage as (
select
@@ -123,7 +123,7 @@ class report_crm_case_section_categ_stage(osv.osv):
_order = 'stage_id, section_id, categ_id'
def init(self, cr):
drop_view_if_exists(cr, "report_crm_case_section_categ_stage")
cr.drop_view_if_exists("report_crm_case_section_categ_stage")
cr.execute("""
create view report_crm_case_section_categ_stage as (
select
@@ -161,7 +161,7 @@ class report_crm_case_section_categ_categ2(osv.osv):
_order = 'section_id, categ_id, category2_id'
def init(self, cr):
drop_view_if_exists(cr, "report_crm_case_section_categ_categ2")
cr.drop_view_if_exists("report_crm_case_section_categ_categ2")
cr.execute("""
create view report_crm_case_section_categ_categ2 as (
select